]> git.ipfire.org Git - thirdparty/git.git/commit - list-objects-filter.c
list-objects-filter: plug combine_filter_data leak
authorRené Scharfe <l.s.r@web.de>
Sun, 20 Nov 2022 11:00:52 +0000 (12:00 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 21 Nov 2022 07:43:26 +0000 (16:43 +0900)
commit7c2dc122f91970ea89a8af0053fbc655a9d58517
treec8c15d26678d5e4f2dd51b9b9492e1752520f03c
parente7e5c6f715b2de7bea0d39c7d2ba887335b40aa0
list-objects-filter: plug combine_filter_data leak

filter_combine__init() allocates a struct combine_filter_data object and
assigns it to the filter_data member of struct filter_options.  Release
it in the complementing filter_combine__free().

Reported-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
list-objects-filter.c