Skip to content

Commit e280888

Browse files
stefanbellergitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 473091e commit e280888

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

http-push.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,6 @@ static void start_fetch_packed(struct transfer_request *request)
316316

317317
preq = new_http_pack_request(target, repo->url);
318318
if (preq == NULL) {
319-
release_http_pack_request(preq);
320319
repo->can_update_info_refs = 0;
321320
return;
322321
}

0 commit comments

Comments
 (0)