diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2022-03-04 19:32:08 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-03-04 13:24:18 -0800 |
commit | b07fa8f1b2004fa7ea7091ba453be894bddfeb3a (patch) | |
tree | ba7bd48d6b1f142c0279526c205eaea9fb5d9b3c /t/t0110/url-10 | |
parent | urlmatch.c: add and use a *_release() function (diff) | |
download | tgif-b07fa8f1b2004fa7ea7091ba453be894bddfeb3a.tar.xz |
remote-curl.c: free memory in cmd_main()
Plug a trivial memory leak in code added in a2d725b7bdf (Use an
external program to implement fetching with curl, 2009-08-05).
To do this have the cmd_main() use a "goto cleanup" pattern, and to
return an error of 1 unless we can fall through to the http_cleanup()
at the end.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t0110/url-10')
0 files changed, 0 insertions, 0 deletions