diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-11-05 07:17:46 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-11-04 22:37:56 -0800 |
commit | 813b12b6f74d75ce5ad2e7453fb763a4db44bdf8 (patch) | |
tree | 5bcaa05ac595808a8597e7055ba8906310c349cd /t/helper/test-submodule-nested-repo-config.c | |
parent | 0bc0fcf0b27271722de4fac668658ad5318bec84 (diff) |
dir: fix leak when parsing "status.showUntrackedFiles"
We use `repo_config_get_string()` to read "status.showUntrackedFiles"
from the config subsystem. This function allocates the result, but we
never free the result after parsing it.
The value never leaves the scope of the calling function, so refactor it
to instead use `repo_config_get_string_tmp()`, which does not hand over
ownership to the caller.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper/test-submodule-nested-repo-config.c')
0 files changed, 0 insertions, 0 deletions