Remove more unnecessary NULL checks before free()

This commit is contained in:
DRC
2020-01-08 15:01:38 -06:00
parent 00607ec260
commit f81833aed6
5 changed files with 6 additions and 11 deletions

View File

@@ -682,12 +682,10 @@ main(int argc, char **argv)
if (memdst) {
fprintf(stderr, "Compressed size: %lu bytes\n", outsize);
if (outbuffer != NULL)
free(outbuffer);
free(outbuffer);
}
if (icc_profile != NULL)
free(icc_profile);
free(icc_profile);
/* All done. */
exit(jerr.num_warnings ? EXIT_WARNING : EXIT_SUCCESS);