Fix a potential file descriptor leak.

Found by cppcheck.
This commit is contained in:
Guus Sliepen 2014-07-12 14:34:39 +02:00
parent 5aed916ef4
commit 31361075d3

View file

@ -613,6 +613,7 @@ make_names:
FILE *fh = fopen(filename, "w");
if(!fh) {
fprintf(stderr, "Could not create file %s: %s\n", filename, strerror(errno));
fclose(f);
return false;
}