Add uninstall to the .PHONY target.
Don't check for NULL before free. Eliminate unused variable.