It is safe to free() a NULL pointer

This commit is contained in:
Jacques Germishuys 2014-04-21 15:25:02 +02:00
parent 48e60ae75e
commit be6996b792

View File

@ -677,9 +677,7 @@ void git_push_status_free(push_status *status)
if (status == NULL)
return;
if (status->msg)
git__free(status->msg);
git__free(status->msg);
git__free(status->ref);
git__free(status);
}