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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user