]> git.ipfire.org Git - thirdparty/git.git/commit
http-push: free repo->url string
authorJeff King <peff@peff.net>
Tue, 24 Sep 2024 22:04:46 +0000 (18:04 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 25 Sep 2024 17:24:56 +0000 (10:24 -0700)
commit4324c6c0d97ec48be18dfae8f1c1c3fb77d43f45
tree27f3803d53d70325cad9270ff8a468d23af6183c
parent85430af347a06b66932eec7c935def4558e0610f
http-push: free repo->url string

Our repo->url string comes from str_end_url_with_slash(), which always
allocates its output buffer. We should free it before exiting to avoid
triggering the leak-checker.

This can be seen by leak-checking t5540.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
http-push.c