From be6996b792cea7a7371e07fb4efc86e5216f4f40 Mon Sep 17 00:00:00 2001 From: Jacques Germishuys Date: Mon, 21 Apr 2014 15:25:02 +0200 Subject: It is safe to free() a NULL pointer --- src/push.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/push.c') 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); } -- cgit v1.2.3