提交 29808857 编写于 作者: N neliasso

8006008: Memory leak in hotspot/src/share/vm/adlc/archDesc.cpp

Reviewed-by: roland, kvn
Contributed-by: niclas.adlertz@oracle.com
上级 32deb129
......@@ -832,6 +832,7 @@ static const char *getRegMask(const char *reg_class_name) {
int length = (int)strlen(rc_name) + (int)strlen(mask) + 5;
char *regMask = new char[length];
sprintf(regMask,"%s%s()", rc_name, mask);
delete[] rc_name;
return regMask;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册