jdk/src/solaris/bin/java_md_solinux.c
changeset 14517 e50acb436a8d
parent 12047 320a714614e9
child 14690 ee8867eb1cdb
--- a/jdk/src/solaris/bin/java_md_solinux.c	Mon Nov 19 13:17:40 2012 +0000
+++ b/jdk/src/solaris/bin/java_md_solinux.c	Tue Nov 20 09:26:38 2012 +0000
@@ -478,9 +478,11 @@
         JLI_TraceLauncher("mustsetenv: %s\n", mustsetenv ? "TRUE" : "FALSE");
 
         if (mustsetenv == JNI_FALSE) {
+            JLI_MemFree(newargv);
             return;
         }
 #else
+        JLI_MemFree(newargv);
         return;
 #endif /* SETENV_REQUIRED */
       } else {  /* do the same speculatively or exit */