8006008: Memory leak in hotspot/src/share/vm/adlc/archDesc.cpp
authorneliasso
Thu, 04 Apr 2013 09:18:47 +0200
changeset 16626 b58a6213631c
parent 16625 85b229ed3f41
child 16628 dd8074df8a2b
8006008: Memory leak in hotspot/src/share/vm/adlc/archDesc.cpp Reviewed-by: roland, kvn Contributed-by: niclas.adlertz@oracle.com
hotspot/src/share/vm/adlc/archDesc.cpp
--- a/hotspot/src/share/vm/adlc/archDesc.cpp	Wed Apr 03 15:00:55 2013 -0700
+++ b/hotspot/src/share/vm/adlc/archDesc.cpp	Thu Apr 04 09:18:47 2013 +0200
@@ -832,6 +832,7 @@
     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;
   }
 }