]> git.ipfire.org Git - thirdparty/git.git/commit
commit-reach: fix trivial memory leak when computing reachability
authorPatrick Steinhardt <ps@pks.im>
Thu, 1 Aug 2024 10:41:15 +0000 (12:41 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 1 Aug 2024 15:47:38 +0000 (08:47 -0700)
commitf30bfafcd41d0f13575361957dc361aa2be4d4c5
tree4081e9ce08ca87d8fb4f58cfe15ce00ac8548274
parent9642479a2b62f7a3f3bf6086c02157c745bb5d74
commit-reach: fix trivial memory leak when computing reachability

We don't free the local `stack` commit list that we use to compute
reachability of multiple commits at once. Do so.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit-reach.c
t/t3201-branch-contains.sh