]> git.ipfire.org Git - thirdparty/git.git/commit
builtin/submodule--helper: fix leaking refs on push-check
authorPatrick Steinhardt <ps@pks.im>
Thu, 5 Sep 2024 10:08:56 +0000 (12:08 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 5 Sep 2024 15:49:11 +0000 (08:49 -0700)
commit1e8cb17ac5c0e7871e15dd40bacd617f25a54763
tree34dfacf8656904bc7c80be0959f21aed300aa01a
parent3eefd348e5865b0406d32194a157ae77d9a7939b
builtin/submodule--helper: fix leaking refs on push-check

In the push-check subcommand of the submodule helper we acquire a list
of local refs, but never free that list. Fix this memory leak.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/submodule--helper.c
t/t5531-deep-submodule-push.sh