aboutsummaryrefslogtreecommitdiffstats
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
parentThe fourteenth batch (diff)
downloadgit-044511f889b1989840339a322f84e50dfa3bf6e0.tar.gz
git-044511f889b1989840339a322f84e50dfa3bf6e0.zip
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