Blame SOURCES/CVE-2018-16548.part3.patch

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