]> git.ipfire.org Git - thirdparty/git.git/commit
promisor-remote: fix leaking partial clone filter
authorPatrick Steinhardt <ps@pks.im>
Thu, 26 Sep 2024 11:46:57 +0000 (13:46 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 27 Sep 2024 15:25:36 +0000 (08:25 -0700)
commit355b3190ee208594ab122eace8a20f17d668e21c
tree7928027ef5d3a49a78b892fc4f0ee5b4d80c9424
parent6d82437a470fc7797e41f5a7ac4874914db7cdb8
promisor-remote: fix leaking partial clone filter

The partial clone filter of a promisor remote is never free'd, causing
memory leaks. Furthermore, in case multiple partial clone filters are
defined for the same remote, we'd overwrite previous values without
freeing them.

Fix these leaks.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
promisor-remote.c
t/t7814-grep-recurse-submodules.sh