changeset 15668:c5d8a90a4b40

8005750: [parfait] Memory leak at jdk/src/share/bin/parse_manifest.c Reviewed-by: jjh
author ksrini
date Wed, 13 Feb 2013 12:56:46 -0800
parents 2b2dd2c639e0
children 0923fe344df6 eca7bd7651cf
files jdk/src/share/bin/parse_manifest.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/jdk/src/share/bin/parse_manifest.c	Wed Feb 13 11:57:59 2013 -0800
+++ b/jdk/src/share/bin/parse_manifest.c	Wed Feb 13 12:56:46 2013 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -106,8 +106,9 @@
             *size_out = (int)entry->isize;
         }
         return (out);
-    } else
-        return (NULL);
+    }
+    free(in);
+    return (NULL);
 }
 
 static jboolean zip64_present = JNI_FALSE;