diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-09-26 13:46:11 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-09-27 08:25:34 -0700 |
commit | 8f786a8e9fbbc8d110937a0ffdfe559f945aab50 (patch) | |
tree | fd087b434b88c81e85929c74787b13a9b9a43e74 /t/helper/test-submodule-nested-repo-config.c | |
parent | 2e492f2047748cf70350d503214ef89f1110ee82 (diff) |
builtin/submodule--helper: clear child process when not running it
In `runcommand_in_submodule_cb()` we may end up not executing the child
command when `argv` is empty. But we still populate the command with
environment variables and other things, which needs cleanup. This leads
to a memory leak because we do not call `finish_command()`.
Fix this by clearing the child process when we don't execute it.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper/test-submodule-nested-repo-config.c')
0 files changed, 0 insertions, 0 deletions