mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
8006008: Memory leak in hotspot/src/share/vm/adlc/archDesc.cpp
Reviewed-by: roland, kvn
This commit is contained in:
parent
93c40233d6
commit
0f3a43e318
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue