diff options
| author | Patrick Steinhardt <ps@pks.im> | 2024-09-05 12:09:41 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-09-05 08:49:13 -0700 |
| commit | 46f6ca2a68e02dd68132ed0b64cd55a8b6569e29 (patch) | |
| tree | dfd6b00be5ebb8928da7ca9684b9962d029dad70 /builtin/repack.c | |
| parent | merge-ort: fix two leaks when handling directory rename modifications (diff) | |
| download | git-46f6ca2a68e02dd68132ed0b64cd55a8b6569e29.tar.gz git-46f6ca2a68e02dd68132ed0b64cd55a8b6569e29.zip | |
builtin/repack: fix leaking keep-pack list
The list of packs to keep is populated via a command line option but
never free'd. Plug this memory leak.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/repack.c')
| -rw-r--r-- | builtin/repack.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/repack.c b/builtin/repack.c index 2b9bf0318a..367e970dcf 100644 --- a/builtin/repack.c +++ b/builtin/repack.c @@ -1525,6 +1525,7 @@ int cmd_repack(int argc, const char **argv, const char *prefix) } cleanup: + string_list_clear(&keep_pack_list, 0); string_list_clear(&names, 1); existing_packs_release(&existing); free_pack_geometry(&geometry); |
