Avoided to close unopened file pointer in case of error. Coverity CID 12546.

release-1.5.4.branch
Thomas Schmitt 7 years ago
parent fa5e27458a
commit 7bdc4c96f5

@ -2037,7 +2037,8 @@ int iso_write_partition_file(Ecma119Image *target, char *path,
}
ret = iso_write(target, buf, BLOCK_SIZE);
if (ret < 0) {
fclose(fp);
if (fp != NULL)
fclose(fp);
goto ex;
}
}

Loading…
Cancel
Save