]> git.ipfire.org Git - thirdparty/git.git/commit
commit-graph: fix start_delayed_progress() leak
authorLidong Yan <502024330056@smail.nju.edu.cn>
Wed, 4 Jun 2025 03:11:15 +0000 (03:11 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 4 Jun 2025 15:55:30 +0000 (08:55 -0700)
commit7082da85cbd03404a21a3ba02158d7ab1989cfc2
tree5819b7e23b19adad3fd5f855ef33d108ac1fce97
parentd50a5e8939abfc07c2ff97ae72e9330939b36ee0
commit-graph: fix start_delayed_progress() leak

In commit-graph.c:graph_write(), if read_one_commit() failed,
progress allocated in start_delayed_progress() will leak. Add
stop_progress() before goto cleanup.

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>
builtin/commit-graph.c