The C standard guarantees that free() is NULL-safe.
free()
NULL
This will create a new commit in order to revert the existing changes.