]> git.99rst.org Git - git.git/commit
t/helper: fix leaking buffer in "dump-untracked-cache"
authorPatrick Steinhardt <redacted>
Tue, 5 Nov 2024 06:17:43 +0000 (07:17 +0100)
committerJunio C Hamano <redacted>
Tue, 5 Nov 2024 06:37:56 +0000 (22:37 -0800)
commit0bc0fcf0b27271722de4fac668658ad5318bec84
tree6133262083c0a5dffd47c79f8f868d02b841e633
parenta53144cf1bfc5ef5b4d8b58311ea83e32e00a69f
t/helper: fix leaking buffer in "dump-untracked-cache"

We never release the local `struct strbuf base` buffer, thus leaking
memory. Fix this leak.

This leak is exposed by t7063, but plugging it alone does not make the
whole test suite pass.

Signed-off-by: Patrick Steinhardt <redacted>
Signed-off-by: Junio C Hamano <redacted>
t/helper/test-dump-untracked-cache.c
git clone https://git.99rst.org/PROJECT