sparse-checkout: free string list in write_cone_to_file()
commit2181fe6e464c4a2615db0df1189d1e6fb0575631
authorJeff King <peff@peff.net>
Tue, 4 Jun 2024 10:13:05 +0000 (4 06:13 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 4 Jun 2024 17:38:22 +0000 (4 10:38 -0700)
treed03b99bbc137b33d59b722e2b90f94b0ded37ad8
parent94d25d3254847fdbf6faf49f145368ec1c3b1ee9
sparse-checkout: free string list in write_cone_to_file()

We use a string list to hold sorted and de-duped patterns, but don't
free it before leaving the function, causing a leak.

This drops the number of leaks found in t7002 from 27 to 25.

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