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 /builtin/commit-graph.c | |
parent | a41e8e74674d53a46616b01f2c18e43c7f2f30a8 (diff) |
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 'builtin/commit-graph.c')
0 files changed, 0 insertions, 0 deletions