]> git.ipfire.org Git - thirdparty/git.git/commit
notes-utils: free note trees when releasing copied notes
authorPatrick Steinhardt <ps@pks.im>
Tue, 11 Jun 2024 09:19:26 +0000 (11:19 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 11 Jun 2024 20:15:05 +0000 (13:15 -0700)
commitbb8c43d5cd9648f868e11e462392a38a43354692
tree539202886f12a697feab3629baeab2bb634910b7
parent14da26230a7644a2f9dfbc3f43d9d7ab6e0074e9
notes-utils: free note trees when releasing copied notes

While we clear most of the members of `struct notes_rewrite_cfg` in
`finish_copy_notes_for_rewrite()`, we do not clear the notes tree. Fix
this to plug this memory leak.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
notes-utils.c
t/t3400-rebase.sh
t/t7501-commit-basic-functionality.sh