From: Stefan Beller Date: Sat, 21 Mar 2015 00:28:06 +0000 (-0700) Subject: http: release the memory of a http pack request as well X-Git-Tag: v2.4.0-rc1~9^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=826aed50cbb072d8f159e4c8ba0f9bd3df21a234;p=thirdparty%2Fgit.git 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 Signed-off-by: Junio C Hamano --- diff --git a/http.c b/http.c index 9c825afefd..4b179f6fc8 100644 --- a/http.c +++ b/http.c @@ -1462,6 +1462,7 @@ void release_http_pack_request(struct http_pack_request *preq) } preq->slot = NULL; free(preq->url); + free(preq); } int finish_http_pack_request(struct http_pack_request *preq)