diff options
author | Junio C Hamano <gitster@pobox.com> | 2023-06-23 20:21:17 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-06-23 20:21:17 +0200 |
commit | 4e4fc50cf733bb0071e43ea128b13439b93975d2 (patch) | |
tree | a9b89a59e36a3a0687ec1d3eb21a30cc909070c9 /config.c | |
parent | Merge branch 'tb/open-midx-bitmap-fallback' (diff) | |
parent | tests: mark as passing with SANITIZE=leak (diff) | |
download | git-4e4fc50cf733bb0071e43ea128b13439b93975d2.tar.xz git-4e4fc50cf733bb0071e43ea128b13439b93975d2.zip |
Merge branch 'rj/leakfixes'
Leakfixes
* rj/leakfixes:
tests: mark as passing with SANITIZE=leak
config: fix a leak in git_config_copy_or_rename_section_in_file
branch: fix a leak in cmd_branch
branch: fix a leak in setup_tracking
rev-parse: fix a leak with --abbrev-ref
branch: fix a leak in setup_tracking
branch: fix a leak in check_tracking_branch
branch: fix a leak in inherit_tracking
branch: fix a leak in dwim_and_setup_tracking
remote: fix a leak in query_matches_negative_refspec
config: fix a leak in git_config_copy_or_rename_section_in_file
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -3841,6 +3841,7 @@ static int git_config_copy_or_rename_section_in_file(const char *config_filename output[0] = '\t'; } } else { + strbuf_release(©str); copystr = store_create_section(new_name, &store); } } @@ -3887,6 +3888,7 @@ out_no_rollback: free(filename_buf); config_store_data_clear(&store); strbuf_release(&buf); + strbuf_release(©str); return ret; } |