remove needless conditionals

freeing the null pointer is not an error

Signed-off-by: Michael Leibowitz <michael.leibowitz@intel.com>