Eliminate unnecessary NULL checks before free()

This programming practice (which exists in other code bases as well)
is a by-product of having used early C compilers that did not properly
handle free(NULL).  All modern compilers should properly handle that.

Fixes #398
This commit is contained in:
DRC
2020-01-07 15:23:08 -06:00
parent 166e34213e
commit fdf8903354
4 changed files with 47 additions and 51 deletions

View File

@@ -1232,9 +1232,9 @@ bailout:
free(dstBufs);
}
SAFE_RELEASE(jsrcBuf, jpegBuf);
if (jdstBufs) free(jdstBufs);
if (dstSizes) free(dstSizes);
if (t) free(t);
free(jdstBufs);
free(dstSizes);
free(t);
return jdstSizes;
}