sparse-checkout: free string list after displaying
commita544b7da2c91f07c6d22d9c0b72911d32f836c54
authorJeff King <peff@peff.net>
Tue, 4 Jun 2024 10:13:37 +0000 (4 06:13 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 5 Jun 2024 16:51:43 +0000 (5 09:51 -0700)
tree00f692963a9477876dbec563ad68c19bd1613355
parent521e04e6e8d234e89a5bbeac0b432724b98ac508
sparse-checkout: free string list after displaying

In sparse_checkout_list(), we put the hashmap entries into a string_list
so we can sort them. But after printing, we forget to free the list.

This patch drops 5 leaks from t1091.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/sparse-checkout.c