diff options
| author | Junio C Hamano <gitster@pobox.com> | 2022-06-17 10:33:31 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2022-06-17 10:33:31 -0700 |
| commit | e870c5857fbd67a7015b8c5539293bcb5d8e8ff5 (patch) | |
| tree | 83d6d4dba0207548c67cebdf7a6b39d9e116384f /builtin | |
| parent | 99bbf4739d927a3d8183d1fc3f1ee7871aac9fb9 (diff) | |
| parent | c918f5c1ab0c4dec916b747916236ca0d3655be5 (diff) | |
| download | git-e870c5857fbd67a7015b8c5539293bcb5d8e8ff5.tar.gz | |
Merge branch 'js/misc-fixes'
Assorted fixes to problems found by Coverity.
* js/misc-fixes:
relative_url(): fix incorrect condition
pack-mtimes: avoid closing a bogus file descriptor
read_index_from(): avoid memory leak
submodule--helper: avoid memory leak when fetching submodules
submodule-config: avoid memory leak
fsmonitor: avoid memory leak in `fsm_settings__get_incompatible_msg()`
Diffstat (limited to 'builtin')
| -rw-r--r-- | builtin/submodule--helper.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/submodule--helper.c b/builtin/submodule--helper.c index 5c77dfcffe..c597df7528 100644 --- a/builtin/submodule--helper.c +++ b/builtin/submodule--helper.c @@ -2208,6 +2208,7 @@ static int fetch_in_submodule(const char *module_path, int depth, int quiet, str char *hex = oid_to_hex(oid); char *remote = get_default_remote(); strvec_pushl(&cp.args, remote, hex, NULL); + free(remote); } return run_command(&cp); |
