src/share/vm/classfile/javaAssertions.cpp

changeset 3900
d2a62e0f25eb
parent 2708
1d1603768966
child 4037
da91efe96a93
     1.1 --- a/src/share/vm/classfile/javaAssertions.cpp	Wed Jun 27 15:23:36 2012 +0200
     1.2 +++ b/src/share/vm/classfile/javaAssertions.cpp	Thu Jun 28 17:03:16 2012 -0400
     1.3 @@ -58,7 +58,7 @@
     1.4    // it is never freed, so will be leaked (along with other option strings -
     1.5    // e.g., bootclasspath) if a process creates/destroys multiple VMs.
     1.6    int len = (int)strlen(name);
     1.7 -  char *name_copy = NEW_C_HEAP_ARRAY(char, len + 1);
     1.8 +  char *name_copy = NEW_C_HEAP_ARRAY(char, len + 1, mtClass);
     1.9    strcpy(name_copy, name);
    1.10  
    1.11    // Figure out which list the new item should go on.  Names that end in "..."

mercurial