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>
Stefan Beller committed
Mar 20, 2015 at 17:28 UTC
826aed50cbb072d8f159e4c8ba0f9bd3df21a234
1 file changed
+1
http.c
+1
@@ -1462,6 +1462,7 @@ void release_http_pack_request(struct http_pack_request *preq)
1462
}
1463
preq->slot = NULL;
1464
free(preq->url);
1465
+ free(preq);
1466
}
1467
1468
int finish_http_pack_request(struct http_pack_request *preq)