--- a/hotspot/src/share/vm/runtime/perfMemory.cpp Fri Nov 28 16:33:57 2014 +0100
+++ b/hotspot/src/share/vm/runtime/perfMemory.cpp Mon Dec 01 12:16:15 2014 -0500
@@ -250,7 +250,7 @@
dest_file = NEW_C_HEAP_ARRAY(char, JVM_MAXPATHLEN, mtInternal);
if(!Arguments::copy_expand_pid(PerfDataSaveFile, strlen(PerfDataSaveFile),
dest_file, JVM_MAXPATHLEN)) {
- FREE_C_HEAP_ARRAY(char, dest_file, mtInternal);
+ FREE_C_HEAP_ARRAY(char, dest_file);
if (PrintMiscellaneous && Verbose) {
warning("Invalid performance data file path name specified, "\
"fall back to a default name");