[Pkg-libvirt-commits] [libguestfs] 05/66: make-fs: Close FILE* along error path.
Hilko Bengen
bengen at moszumanska.debian.org
Fri May 9 12:56:19 UTC 2014
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to branch master
in repository libguestfs.
commit dafbc4ac876c1f4d18a4041dde125ffef3405f6b
Author: Richard W.M. Jones <rjones at redhat.com>
Date: Fri Mar 28 14:01:19 2014 +0000
make-fs: Close FILE* along error path.
Found by Coverity.
(cherry picked from commit 15b06d6100ceed0974d52d1aeffa67e9e34fc7da)
---
make-fs/make-fs.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/make-fs/make-fs.c b/make-fs/make-fs.c
index f931d21..a03bb8f 100644
--- a/make-fs/make-fs.c
+++ b/make-fs/make-fs.c
@@ -419,6 +419,7 @@ estimate_input (const char *input, uint64_t *estimate_rtn, char **ifmt_rtn)
}
if (fgets (line, sizeof line, fp) == NULL) {
perror ("fgets");
+ fclose (fp);
return -1;
}
fclose (fp);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git
More information about the Pkg-libvirt-commits
mailing list