]> git.ipfire.org Git - thirdparty/git.git/commit
builtin/show-ref: fix leaking string buffer
authorPatrick Steinhardt <ps@pks.im>
Tue, 31 Oct 2023 08:16:21 +0000 (09:16 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 Nov 2023 03:09:00 +0000 (12:09 +0900)
commitdbabd0b023b6a65267fd57ed04ecd47ac34b5ae5
tree4738583fc6d0114f840f7960360d627a0cc3a0a7
parentb14cbae2b528ea8eda7e05febff9c395b8e5c968
builtin/show-ref: fix leaking string buffer

Fix a leaking string buffer in `git show-ref --exclude-existing`. While
the buffer is technically not leaking because its variable is declared
as static, there is no inherent reason why it should be.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/show-ref.c