diff options
| author | Patrick Steinhardt <ps@pks.im> | 2024-03-25 11:03:15 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-03-25 09:54:07 -0700 |
| commit | a75dc71f3772cee10dfb93861610d8ee413ad207 (patch) | |
| tree | 385930a30d72da11bb9d251b76af515069436b84 /t/unit-tests/t-basic.c | |
| parent | f89356db4a26eef47aceb2d03039fff6b1a4180d (diff) | |
builtin/pack-refs: release allocated memory
Some of the command line options in `cmd_pack_refs()` require us to
allocate memory. This memory is never released and thus leaking, but we
paper over this leak by declaring the respective variables as `static`
function-level variables, which is somewhat awkward.
Refactor the code to release the allocated memory and drop the `static`
declaration. While at it, remove the useless `flags` variable.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/unit-tests/t-basic.c')
0 files changed, 0 insertions, 0 deletions
