summaryrefslogtreecommitdiff
path: root/http.c
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2015-03-21 00:28:06 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-03-24 19:36:10 (GMT)
commit826aed50cbb072d8f159e4c8ba0f9bd3df21a234 (patch)
treedcb4464197b8cd51398bfea77a86f181603faf72 /http.c
parent915e44c6357f3bd9d5fa498a201872c4367302d3 (diff)
downloadgit-826aed50cbb072d8f159e4c8ba0f9bd3df21a234.zip
git-826aed50cbb072d8f159e4c8ba0f9bd3df21a234.tar.gz
git-826aed50cbb072d8f159e4c8ba0f9bd3df21a234.tar.bz2
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 <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'http.c')
-rw-r--r--http.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/http.c b/http.c
index 9c825af..4b179f6 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)