Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage-utils:master commit in: /
Date: Sat, 25 Jan 2020 09:03:15
Message-Id: 1579892191.9fc55602841eb9592b7bbef9cdd2040e1fd07910.grobian@gentoo
1 commit: 9fc55602841eb9592b7bbef9cdd2040e1fd07910
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 24 18:56:31 2020 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 24 18:56:31 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=9fc55602
7
8 qmanifest: fix Coverity 206540 Resource leak
9
10 Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
11
12 qmanifest.c | 1 +
13 1 file changed, 1 insertion(+)
14
15 diff --git a/qmanifest.c b/qmanifest.c
16 index 84fd25d..308aee7 100644
17 --- a/qmanifest.c
18 +++ b/qmanifest.c
19 @@ -434,6 +434,7 @@ generate_dir(const char *dir, enum type_manifest mtype)
20 if (gzwrite(mf, path, len) == 0) {
21 fprintf(stderr, "failed to write to file '%s/%s': %s\n",
22 dir, str_manifest_files_gz, strerror(errno));
23 + gzclose(mf);
24 return NULL;
25 }