summaryrefslogtreecommitdiff
path: root/contrib/subtree/t
diff options
context:
space:
mode:
authorLibravatar Phillip Wood <phillip.wood@dunelm.org.uk>2020-09-07 15:04:00 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-09-08 14:51:38 -0700
commit324efcf6b6d30d43b98e76c7beac90ecfb40d637 (patch)
treee060ddbd6c8e39b9c067971af70c08c74b18fda5 /contrib/subtree/t
parentGit 2.28 (diff)
downloadtgif-324efcf6b6d30d43b98e76c7beac90ecfb40d637.tar.xz
add -p: fix memory leak
asan reports that the C version of `add -p` is not freeing all the memory it allocates. Fix this by introducing a function to clear `struct add_p_state` and use it instead of freeing individual members. Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk> Acked-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/subtree/t')
0 files changed, 0 insertions, 0 deletions