diff options
| author | Patrick Steinhardt <ps@pks.im> | 2024-09-26 13:46:14 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-09-27 08:25:34 -0700 |
| commit | 2266bb4f6a8a876b57eaa04dc93f7b567e0e4eed (patch) | |
| tree | b26425fd641d6ebf110186cf8918870b7fc0e2b4 /builtin/submodule--helper.c | |
| parent | 8f786a8e9fbbc8d110937a0ffdfe559f945aab50 (diff) | |
| download | git-2266bb4f6a8a876b57eaa04dc93f7b567e0e4eed.tar.gz | |
builtin/submodule--helper: fix leaking error buffer
Fix leaking error buffer when `compute_alternate_path()` fails.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/submodule--helper.c')
| -rw-r--r-- | builtin/submodule--helper.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin/submodule--helper.c b/builtin/submodule--helper.c index fd1b679408..ff1376f69f 100644 --- a/builtin/submodule--helper.c +++ b/builtin/submodule--helper.c @@ -1621,6 +1621,8 @@ static int add_possible_reference_from_superproject( ; /* nothing */ } } + + strbuf_release(&err); strbuf_release(&sb); } |
