8055204: Memory leak in jdk/src/windows/native/java/lang/java_props_md.c
authormsheppar
Wed, 25 Feb 2015 17:24:13 +0000
changeset 29116 9918719cfcc0
parent 29115 d7360c3b4055
child 29117 7956b5dc0eac
8055204: Memory leak in jdk/src/windows/native/java/lang/java_props_md.c Reviewed-by: rriggs
jdk/src/java.base/windows/native/libjava/java_props_md.c
--- a/jdk/src/java.base/windows/native/libjava/java_props_md.c	Wed Feb 25 17:05:56 2015 +0000
+++ b/jdk/src/java.base/windows/native/libjava/java_props_md.c	Wed Feb 25 17:24:13 2015 +0000
@@ -188,6 +188,7 @@
             free(elems[index]);
         }
     } else {
+        free(ret);
         ret = NULL;
     }