diff options
author | Stefan Beller <sbeller@google.com> | 2015-03-20 17:28:06 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-03-24 12:36:10 -0700 |
commit | 826aed50cbb072d8f159e4c8ba0f9bd3df21a234 (patch) | |
tree | dcb4464197b8cd51398bfea77a86f181603faf72 /http.c | |
parent | 915e44c6357f3bd9d5fa498a201872c4367302d3 (diff) | |
download | git-826aed50cbb072d8f159e4c8ba0f9bd3df21a234.tar.gz |
http: release the memory of a http pack request as wellsb/leaks
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) |