summaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-09-26 13:46:59 +0200
committerJunio C Hamano <gitster@pobox.com>2024-09-27 08:25:37 -0700
commit84e9fc361dca294629ef0b1e4e2eea815fc5b522 (patch)
tree3ec1243df76f4c8eb74cfe0d14fb435f6660d7e3 /diff.c
parent355b3190ee208594ab122eace8a20f17d668e21c (diff)
builtin/maintenance: fix leaking config string
When parsing the maintenance strategy from config we allocate a config string, but do not free it after parsing it. Plug this leak by instead using `git_config_get_string_tmp()`, which does not allocate any memory. This leak is exposed by t7900, but plugging it alone does not make the test suite pass. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.c')
0 files changed, 0 insertions, 0 deletions