From: Stefan Beller Date: Sat, 21 Mar 2015 00:28:05 +0000 (-0700) Subject: http-push: remove unneeded cleanup X-Git-Tag: v2.4.0-rc1~9^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e280888cfb5c0fb5b75acaab04aa2ca28da3225b;p=thirdparty%2Fgit.git http-push: remove unneeded cleanup preq is NULL as the condition the line before dictates. And the cleanup function release_http_pack_request is not null pointer safe. Signed-off-by: Stefan Beller Signed-off-by: Junio C Hamano --- diff --git a/http-push.c b/http-push.c index 0beb7ab67f..9469684e9c 100644 --- a/http-push.c +++ b/http-push.c @@ -316,7 +316,6 @@ static void start_fetch_packed(struct transfer_request *request) preq = new_http_pack_request(target, repo->url); if (preq == NULL) { - release_http_pack_request(preq); repo->can_update_info_refs = 0; return; }