mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-29 20:42:23 +00:00
It is safe to free() a NULL pointer
This commit is contained in:
parent
48e60ae75e
commit
be6996b792
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user