summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 860aed8)
raw | patch | inline | side by side (parent: 860aed8)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 28 Nov 2015 22:15:24 +0000 (23:15 +0100) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Mon, 30 Nov 2015 21:57:29 +0000 (22:57 +0100) |
src/fhcount.c | patch | blob | history |
diff --git a/src/fhcount.c b/src/fhcount.c
index 4c409b58d894f20ed8544a2df964b379ced000ed..666dacc09db1b6e876cf5b11e769c37f97f05626 100644 (file)
--- a/src/fhcount.c
+++ b/src/fhcount.c
}
if (fgets(buffer, buffer_len, fp) == NULL) {
ERROR("fhcount: fgets: %s", sstrerror(errno, errbuf, sizeof(errbuf)));
+ fclose(fp);
return(EXIT_FAILURE);
}
fclose(fp);