]> git.ipfire.org Git - thirdparty/git.git/commit
shallow: free grafts when unregistering them
authorPatrick Steinhardt <ps@pks.im>
Thu, 5 Sep 2024 10:09:15 +0000 (12:09 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 5 Sep 2024 15:49:12 +0000 (08:49 -0700)
commit14c0ea0f6f7a0898214d8fa822a2392ef3a00f53
tree2169fea90a757a594ae9754b4eddfe85a1bd1ae0
parent0d1d22f5a385d05bde40303c17483db2eec499b3
shallow: free grafts when unregistering them

When removing a graft via `unregister_shallow()` we remove it from the
grafts array, but do not free the structure. Fix this to plug the leak.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
shallow.c
t/t5537-fetch-shallow.sh