Skip to content

Commit

Permalink
http-push: remove unneeded cleanup
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stefan Beller authored and Junio C Hamano committed Mar 23, 2015
1 parent 473091e commit e280888
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion http-push.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e280888

Please sign in to comment.