32a5a4
From 0e1dadb05c1473b9df2d7b8f298dab801778ef99 Mon Sep 17 00:00:00 2001
32a5a4
From: jmoellers <josef.moellers@suse.com>
32a5a4
Date: Fri, 7 Sep 2018 13:55:35 +0200
32a5a4
Subject: [PATCH] One more free() to avoid memory leak.
32a5a4
32a5a4
---
32a5a4
 zzip/zip.c | 2 ++
32a5a4
 1 file changed, 2 insertions(+)
32a5a4
32a5a4
diff --git a/zzip/zip.c b/zzip/zip.c
32a5a4
index 51a1a4d..bc6c080 100644
32a5a4
--- a/zzip/zip.c
32a5a4
+++ b/zzip/zip.c
32a5a4
@@ -589,6 +589,8 @@ __zzip_parse_root_directory(int fd,
32a5a4
 	    free(hdr0);
32a5a4
 	}
32a5a4
     }                           /* else zero (sane) entries */
32a5a4
+    else
32a5a4
+        free(hdr0);
32a5a4
 #  ifndef ZZIP_ALLOW_MODULO_ENTRIES
32a5a4
     return (entries != zz_entries) ? ZZIP_CORRUPTED : 0;
32a5a4
 #  else