diff options
author | 2020-01-24 19:41:13 +0100 | |
---|---|---|
committer | 2020-01-24 19:41:13 +0100 | |
commit | 813b219d06e950f44d47d60d401d0e8c11073631 (patch) | |
tree | eebd0ce7808389e66cf89d7c6fa597bff738502b /qmanifest.c | |
parent | qsize: fix Coverity 206536 Invalid printf format string (diff) | |
download | portage-utils-813b219d06e950f44d47d60d401d0e8c11073631.tar.gz portage-utils-813b219d06e950f44d47d60d401d0e8c11073631.tar.bz2 portage-utils-813b219d06e950f44d47d60d401d0e8c11073631.zip |
qmanifest: fix Coverity 206540 Resource leak
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'qmanifest.c')
-rw-r--r-- | qmanifest.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qmanifest.c b/qmanifest.c index b4057bb..2a6d9b5 100644 --- a/qmanifest.c +++ b/qmanifest.c @@ -582,8 +582,10 @@ generate_dir(const char *dir, enum type_manifest mtype) return NULL; } - if (list_dir(&dentries, &dentrieslen, dir) != 0) + if (list_dir(&dentries, &dentrieslen, dir) != 0) { + gzclose(mf); return NULL; + } for (i = 0; i < dentrieslen; i++) { /* ignore existing Manifests */ |