Skip to content

Commit 7c2dc12

Browse files
rscharfegitster
authored andcommitted
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 <[email protected]> Signed-off-by: René Scharfe <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e7e5c6f commit 7c2dc12

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

list-objects-filter.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,7 @@ static void filter_combine__free(void *filter_data)
709709
BUG("expected oidset to be cleared already");
710710
}
711711
free(d->sub);
712+
free(d);
712713
}
713714

714715
static void add_all(struct oidset *dest, struct oidset *src) {

0 commit comments

Comments
 (0)