aboutsummaryrefslogtreecommitdiff
path: root/http-push.c
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2015-03-20 17:28:05 -0700
committerJunio C Hamano <gitster@pobox.com>2015-03-23 11:12:58 -0700
commite280888cfb5c0fb5b75acaab04aa2ca28da3225b (patch)
tree5d41c59952d6cda7e209f3ade5fd19ae8da85e5e /http-push.c
parent473091e21ef2dbee6087cdf0429858faf2b50740 (diff)
downloadgit-e280888cfb5c0fb5b75acaab04aa2ca28da3225b.tar.gz
git-e280888cfb5c0fb5b75acaab04aa2ca28da3225b.tar.xz
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 <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'http-push.c')
-rw-r--r--http-push.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/http-push.c b/http-push.c
index 0beb7ab67..9469684e9 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;
}