ad8647b136
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/zziplib#064e05a582b0706888980a9354ea73e43251ca8a
23 lines
641 B
Diff
23 lines
641 B
Diff
From 0e1dadb05c1473b9df2d7b8f298dab801778ef99 Mon Sep 17 00:00:00 2001
|
|
From: jmoellers <josef.moellers@suse.com>
|
|
Date: Fri, 7 Sep 2018 13:55:35 +0200
|
|
Subject: [PATCH] One more free() to avoid memory leak.
|
|
|
|
---
|
|
zzip/zip.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/zzip/zip.c b/zzip/zip.c
|
|
index 51a1a4d..bc6c080 100644
|
|
--- a/zzip/zip.c
|
|
+++ b/zzip/zip.c
|
|
@@ -589,6 +589,8 @@ __zzip_parse_root_directory(int fd,
|
|
free(hdr0);
|
|
}
|
|
} /* else zero (sane) entries */
|
|
+ else
|
|
+ free(hdr0);
|
|
# ifndef ZZIP_ALLOW_MODULO_ENTRIES
|
|
return (entries != zz_entries) ? ZZIP_CORRUPTED : 0;
|
|
# else
|