diff options
author | Jacques Germishuys <jacquesg@striata.com> | 2014-04-21 15:25:02 +0200 |
---|---|---|
committer | Jacques Germishuys <jacquesg@striata.com> | 2014-04-21 16:29:41 +0200 |
commit | be6996b792cea7a7371e07fb4efc86e5216f4f40 (patch) | |
tree | 9584bdc6bc956969ecbb4be8721e98af0ddb8b4f | |
parent | 48e60ae75e78bc58aeb3c7ecf6be4653152182f4 (diff) | |
download | libgit2-be6996b792cea7a7371e07fb4efc86e5216f4f40.tar.gz |
It is safe to free() a NULL pointer
-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); } |