diff options
| author | Patrick Steinhardt <ps@pks.im> | 2024-08-22 11:17:30 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-08-22 09:18:04 -0700 |
| commit | 479601e9f4708a921e9bfad3a73e931cbed8817a (patch) | |
| tree | f935fa3989f5d08b7164d5c0d84f232441c4c366 /git-commit-script | |
| parent | 149c9e200c18316432a99a9b5edfa0d0b4d50bc5 (diff) | |
builtin/archive: fix leaking `OPT_FILENAME()` value
The "--output" switch is an `OPT_FILENAME()` option, which allocates
memory when specified by the user. But while we free the string when
executed without the "--remote" switch, we don't otherwise because we
return via a separate exit path that doesn't know to free it.
Fix this by creating a common exit path.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-commit-script')
0 files changed, 0 insertions, 0 deletions
