make-fs: Close FILE* along error path.

Found by Coverity.
This commit is contained in:
Richard W.M. Jones
2014-03-28 14:01:19 +00:00
parent 410aae4b6f
commit 15b06d6100

View File

@@ -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);