summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2017-06-05 09:18:12 +0900
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-06-05 09:18:12 +0900
commita12bfb2bfb8f3c0b257e60a6f697a254f5058c72 (patch)
tree579b180683bb2c3c419cd5b7085929d62d93db52
parentMerge branch 'js/blame-lib' (diff)
parentconnect.c: fix leak in parse_one_symref_info() (diff)
downloadtgif-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/connect.c b/connect.c
index cd21a1b6f7..c72b1d1151 100644
--- a/connect.c
+++ b/connect.c
@@ -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: