Attached is a simple C program that has an unnecessary if check on a
pointer before calling free() on it.
Any chance someone could add this as a code reduction warning? I've
recently seen several projects that unnecessarily wrap free() with an
if() check.
ifnotfree.c (190 Bytes)