summaryrefslogtreecommitdiff
path: root/commit-graph.c
diff options
context:
space:
mode:
authorLidong Yan <502024330056@smail.nju.edu.cn>2025-05-14 13:53:28 +0000
committerJunio C Hamano <gitster@pobox.com>2025-05-15 13:53:33 -0700
commit044511f889b1989840339a322f84e50dfa3bf6e0 (patch)
tree34d2338fa838dceda15b0ea5047fd97cb93df541 /commit-graph.c
parent1a8a4971cc6c179c4dd711f4a7f5d7178f4b3ab7 (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