Skip to content

Commit 826aed5

Browse files
stefanbellergitster
authored andcommitted
http: release the memory of a http pack request as well
The cleanup function is used in 4 places now and it's always safe to free up the memory as well. Signed-off-by: Stefan Beller <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 915e44c commit 826aed5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

http.c

+1
Original file line numberDiff line numberDiff line change
@@ -1462,6 +1462,7 @@ void release_http_pack_request(struct http_pack_request *preq)
14621462
}
14631463
preq->slot = NULL;
14641464
free(preq->url);
1465+
free(preq);
14651466
}
14661467

14671468
int finish_http_pack_request(struct http_pack_request *preq)

0 commit comments

Comments
 (0)