This check is unnecessary. `free()` is guaranteed to be harmless on `NULL`.