]> granicus.if.org Git - git/commitdiff
http-push: remove unneeded cleanup
authorStefan Beller <sbeller@google.com>
Sat, 21 Mar 2015 00:28:05 +0000 (17:28 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 23 Mar 2015 18:12:58 +0000 (11:12 -0700)
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 <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
http-push.c

index 0beb7ab67ffc93a6c8fe8517d711945e2c033b7d..9469684e9c9b68f9961352a2fcd046891282c8ac 100644 (file)
@@ -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;
        }