summaryrefslogtreecommitdiff
path: root/builtin/commit.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-09-26 13:46:40 +0200
committerJunio C Hamano <gitster@pobox.com>2024-09-27 08:25:36 -0700
commitdea4a9521ea134bbc12bce492b1ae467f5ff1bd1 (patch)
tree22052d3a9822c2181217b64a4366b46df645f1f6 /builtin/commit.c
parent6932ec81834003855486547cdc561cbbdd335389 (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