mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
make-fs: Close FILE* along error path.
Found by Coverity.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user