Commit be6996b7 by Jacques Germishuys

It is safe to free() a NULL pointer

parent 48e60ae7
...@@ -677,9 +677,7 @@ void git_push_status_free(push_status *status) ...@@ -677,9 +677,7 @@ void git_push_status_free(push_status *status)
if (status == NULL) if (status == NULL)
return; return;
if (status->msg) git__free(status->msg);
git__free(status->msg);
git__free(status->ref); git__free(status->ref);
git__free(status); git__free(status);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment