http: stop leaking buffer in http_get_info_packs()
commit75f4acc98125a9e9f5b3051c0dc6690839830e25
authorJeff King <peff@peff.net>
Tue, 24 Sep 2024 22:02:27 +0000 (24 18:02 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 25 Sep 2024 17:24:55 +0000 (25 10:24 -0700)
tree92983bfc3a2c5cb6dba8146a32cef1401b2bd790
parent8bdb84ebbbfadf71ae1760e68be5422cbe4872c6
http: stop leaking buffer in http_get_info_packs()

We use http_get_strbuf() to fetch the remote info/packs content into a
strbuf, but never free it, causing a leak. There's no need to hold onto
it, as we've already parsed it completely.

This lets us mark t5619 as leak-free.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
http.c
t/t5619-clone-local-ambiguous-transport.sh