diff options
author | Lidong Yan <502024330056@smail.nju.edu.cn> | 2025-05-14 13:53:28 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2025-05-15 13:53:33 -0700 |
commit | 044511f889b1989840339a322f84e50dfa3bf6e0 (patch) | |
tree | 34d2338fa838dceda15b0ea5047fd97cb93df541 /commit-graph.c | |
parent | 1a8a4971cc6c179c4dd711f4a7f5d7178f4b3ab7 (diff) |
sequencer: fix memory leak if `todo_list_rearrange_squash()` failed
In sequencer.c:todo_list_rearrange_squash, if it fails, memory
allocated in `next`, `tail`, `subjects` and `subject2item` will leak.
Jump to cleanup label before return could fix this leak problem.
Signed-off-by: Lidong Yan <502024330056@smail.nju.edu.cn>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-graph.c')
0 files changed, 0 insertions, 0 deletions