mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-28 15:58:29 +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)
|
||||
return;
|
||||
|
||||
if (status->msg)
|
||||
git__free(status->msg);
|
||||
|
||||
git__free(status->msg);
|
||||
git__free(status->ref);
|
||||
git__free(status);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user