diff options
author | Jacques Germishuys <jacquesg@striata.com> | 2014-04-21 17:25:02 +0400 |
---|---|---|
committer | Jacques Germishuys <jacquesg@striata.com> | 2014-04-21 18:29:41 +0400 |
commit | be6996b792cea7a7371e07fb4efc86e5216f4f40 (patch) | |
tree | 9584bdc6bc956969ecbb4be8721e98af0ddb8b4f /src | |
parent | 48e60ae75e78bc58aeb3c7ecf6be4653152182f4 (diff) |
It is safe to free() a NULL pointer
Diffstat (limited to 'src')
-rw-r--r-- | src/push.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/push.c b/src/push.c index 5c8de3339..bd4d872c5 100644 --- a/src/push.c +++ b/src/push.c @@ -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); } |