repack: free existing_cruft array after use
commitc1b754d0597be83439ecc8de2a59a90f35cd4040
authorJeff King <peff@peff.net>
Sat, 7 Oct 2023 17:20:31 +0000 (7 13:20 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 Oct 2023 17:27:34 +0000 (9 10:27 -0700)
tree33582fcd92cb5745c55304edf4877eaa39dbdb62
parent3c1e2c2113842b8462803ef8c9aca596eacfd3af
repack: free existing_cruft array after use

We allocate an array of packed_git pointers so that we can sort the list
of cruft packs, but we never free the array, causing a small leak. Note
that we don't need to free the packed_git structs themselves; they're
owned by the repository object.

Signed-off-by: Jeff King <peff@peff.net>
Acked-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/repack.c