diff options
author | Phillip Wood <phillip.wood@dunelm.org.uk> | 2020-09-07 15:04:00 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-09-08 14:51:38 -0700 |
commit | 324efcf6b6d30d43b98e76c7beac90ecfb40d637 (patch) | |
tree | e060ddbd6c8e39b9c067971af70c08c74b18fda5 /config.mak.in | |
parent | Git 2.28 (diff) | |
download | tgif-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 'config.mak.in')
0 files changed, 0 insertions, 0 deletions