Minor style change, don't test pointer as if it's a boolean, don't check
if a pointer is NULL before freeing it.