diff options
| author | Lidong Yan <502024330056@smail.nju.edu.cn> | 2025-06-04 03:07:54 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-06-04 08:52:25 -0700 |
| commit | aedebdb6b99af5fb5a61ae1359c1ed3a7b55135c (patch) | |
| tree | 85149a479e5b768cef320ac753f59c193db523e7 /builtin/multi-pack-index.c | |
| parent | d50a5e8939abfc07c2ff97ae72e9330939b36ee0 (diff) | |
| download | git-aedebdb6b99af5fb5a61ae1359c1ed3a7b55135c.tar.gz | |
builtin/fetch-pack: cleanup before return error
In builtin/fetch-pack.c:cmd_fetch_pack(), if finish_connect() failed,
it returns error code without cleanup which cause memory leak. Add
cleanup label before frees in the end of cmd_fetch_pack(), and add
`goto cleanup` if finish_connect() failed.
Signed-off-by: Lidong Yan <502024330056@smail.nju.edu.cn>
Acked-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/multi-pack-index.c')
0 files changed, 0 insertions, 0 deletions
