1 |
commit: b5b5d2a2302d6110a3df6bf9ed53226306c8da07 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 19 19:23:20 2020 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 19 19:23:20 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=b5b5d2a2 |
7 |
|
8 |
qfile: fix Coverity 206537 Resource leak |
9 |
|
10 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
11 |
|
12 |
qfile.c | 1 + |
13 |
1 file changed, 1 insertion(+) |
14 |
|
15 |
diff --git a/qfile.c b/qfile.c |
16 |
index 3036be0..d104848 100644 |
17 |
--- a/qfile.c |
18 |
+++ b/qfile.c |
19 |
@@ -143,6 +143,7 @@ static int qfile_check_plibreg(void *priv) |
20 |
|
21 |
if (line) |
22 |
free(line); |
23 |
+ fclose(fp_plibreg); |
24 |
|
25 |
return found; |
26 |
} |