Browse Source

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

release-1.5.4.branch
Thomas Schmitt 6 years ago
parent
commit
7bdc4c96f5
  1. 3
      libisofs/ecma119.c

3
libisofs/ecma119.c

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