Merge branch 'rs/plug-pattern-list-leak-in-lof' into maint-2.39

Leak fix.

* rs/plug-pattern-list-leak-in-lof:
  list-objects-filter: plug pattern_list leak
This commit is contained in:
Junio C Hamano 2023-02-14 14:15:53 -08:00
commit 5a8f4c8adc

View File

@ -514,6 +514,7 @@ static enum list_objects_filter_result filter_sparse(
static void filter_sparse_free(void *filter_data)
{
struct filter_sparse_data *d = filter_data;
clear_pattern_list(&d->pl);
free(d->array_frame);
free(d);
}