diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-08-27 14:04:49 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-08-27 14:04:49 -0700 |
commit | 0d9a8e33f9fd07efa10072576df01a9cae5d89e6 (patch) | |
tree | 5a01c05bf4d8e6d775c4843e5c760e81be4a780b /t | |
parent | Merge branch 'en/mem-pool' (diff) | |
parent | submodule--helper: fix leak of core.worktree value (diff) | |
download | tgif-0d9a8e33f9fd07efa10072576df01a9cae5d89e6.tar.xz |
Merge branch 'jk/leakfix'
Code clean-up.
* jk/leakfix:
submodule--helper: fix leak of core.worktree value
config: fix leak in git_config_get_expiry_in_days()
config: drop git_config_get_string_const()
config: fix leaks from git_config_get_string_const()
checkout: fix leak of non-existent branch names
submodule--helper: use strbuf_release() to free strbufs
clear_pattern_list(): clear embedded hashmaps
Diffstat (limited to 't')
-rw-r--r-- | t/helper/test-config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/helper/test-config.c b/t/helper/test-config.c index 234c722b48..a6e936721f 100644 --- a/t/helper/test-config.c +++ b/t/helper/test-config.c @@ -126,7 +126,7 @@ int cmd__config(int argc, const char **argv) goto exit1; } } else if (argc == 3 && !strcmp(argv[1], "get_string")) { - if (!git_config_get_string_const(argv[2], &v)) { + if (!git_config_get_string_tmp(argv[2], &v)) { printf("%s\n", v); goto exit0; } else { |