hotspot/src/share/vm/classfile/javaAssertions.cpp
changeset 13195 be27e1b6a4b9
parent 8921 14bfe81f2a9d
child 13728 882756847a04
--- a/hotspot/src/share/vm/classfile/javaAssertions.cpp	Wed Jun 27 15:23:36 2012 +0200
+++ b/hotspot/src/share/vm/classfile/javaAssertions.cpp	Thu Jun 28 17:03:16 2012 -0400
@@ -58,7 +58,7 @@
   // it is never freed, so will be leaked (along with other option strings -
   // e.g., bootclasspath) if a process creates/destroys multiple VMs.
   int len = (int)strlen(name);
-  char *name_copy = NEW_C_HEAP_ARRAY(char, len + 1);
+  char *name_copy = NEW_C_HEAP_ARRAY(char, len + 1, mtClass);
   strcpy(name_copy, name);
 
   // Figure out which list the new item should go on.  Names that end in "..."