]> git.ipfire.org Git - thirdparty/git.git/commit
ls-files: fix a --with-tree memory leak
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Tue, 8 Nov 2022 18:17:45 +0000 (19:17 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 21 Nov 2022 03:32:48 +0000 (12:32 +0900)
commitc07ce0602a7958299c7fbbf2a5b70d1510c03981
tree61fdb25eba8c27df5d542ddbaacc0d06113635bc
parentfc47252d5b36fe2267e34aa9471dd7bb37d40545
ls-files: fix a --with-tree memory leak

Fix a memory leak in overlay_tree_on_index(), we need to
clear_pathspec() at some point, which might as well be after the last
time we use it in the function.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
builtin/ls-files.c
t/t3060-ls-files-with-tree.sh
t/t9148-git-svn-propset.sh