diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-09-26 13:46:40 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-09-27 08:25:36 -0700 |
commit | dea4a9521ea134bbc12bce492b1ae467f5ff1bd1 (patch) | |
tree | 22052d3a9822c2181217b64a4366b46df645f1f6 /builtin/commit.c | |
parent | 6932ec81834003855486547cdc561cbbdd335389 (diff) |
builtin/repack: fix leaking configuration
When repacking, we assemble git-pack-objects(1) arguments both for the
"normal" pack and for the cruft pack. This configuration gets populated
with a bunch of `OPT_PASSTHRU` options that we end up passing to the
child process. These options are allocated, but never free'd.
Create a new `pack_objects_args_release()` function that releases the
memory for us and call it for both sets of options.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions