changeset 4440:70c52efb2cbd

8006008: Memory leak in hotspot/src/share/vm/adlc/archDesc.cpp Reviewed-by: roland, kvn Contributed-by: niclas.adlertz@oracle.com
author neliasso
date Thu, 04 Apr 2013 09:18:47 +0200
parents 0a8c2ea3902d
children 9125a548c1eb
files src/share/vm/adlc/archDesc.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/adlc/archDesc.cpp	Wed Apr 03 15:00:55 2013 -0700
+++ b/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;
   }
 }