free(): remove unnecessary NULL pointer checks

Calling free() on a NULL pointer is a completely harmless. Reduce code
complexity by removing the unnecessary checks.