diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-06-05 09:18:12 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-06-05 09:18:12 +0900 |
commit | a12bfb2bfb8f3c0b257e60a6f697a254f5058c72 (patch) | |
tree | 579b180683bb2c3c419cd5b7085929d62d93db52 | |
parent | Merge branch 'js/blame-lib' (diff) | |
parent | connect.c: fix leak in parse_one_symref_info() (diff) | |
download | tgif-a12bfb2bfb8f3c0b257e60a6f697a254f5058c72.tar.xz |
Merge branch 'jk/connect-symref-info-leak-fix'
Leakfix.
* jk/connect-symref-info-leak-fix:
connect.c: fix leak in parse_one_symref_info()
-rw-r--r-- | connect.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -71,7 +71,7 @@ static void parse_one_symref_info(struct string_list *symref, const char *val, i check_refname_format(target, REFNAME_ALLOW_ONELEVEL)) /* "symref=bogus:pair */ goto reject; - item = string_list_append(symref, sym); + item = string_list_append_nodup(symref, sym); item->util = target; return; reject: |