diff options
| author | Junio C Hamano <gitster@pobox.com> | 2023-06-23 11:21:17 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-06-23 11:21:17 -0700 |
| commit | 4e4fc50cf733bb0071e43ea128b13439b93975d2 (patch) | |
| tree | a9b89a59e36a3a0687ec1d3eb21a30cc909070c9 /remote.c | |
| parent | 1d15be363ccf0ff4337886568087d0467c93c9a9 (diff) | |
| parent | 80d32e84b5ffc0f678fef2560ef386b1ef98b964 (diff) | |
| download | git-4e4fc50cf733bb0071e43ea128b13439b93975d2.tar.xz | |
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 'remote.c')
| -rw-r--r-- | remote.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -890,7 +890,7 @@ static int query_matches_negative_refspec(struct refspec *rs, struct refspec_ite { int i, matched_negative = 0; int find_src = !query->src; - struct string_list reversed = STRING_LIST_INIT_NODUP; + struct string_list reversed = STRING_LIST_INIT_DUP; const char *needle = find_src ? query->dst : query->src; /* |
