summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-06-13 20:27:05 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-06-13 20:27:05 (GMT)
commit87d4fdd9805edfe582bcbe92da638bb7eeb1725d (patch)
tree3a7946b5faf6a15fc32292f966bde16152965754
parente0538abaf7ad330ab639f418e9de82ef8adbe5bb (diff)
parentef4fe5617eadc24fd09ce7778b77bb87f147480c (diff)
downloadgit-87d4fdd9805edfe582bcbe92da638bb7eeb1725d.zip
git-87d4fdd9805edfe582bcbe92da638bb7eeb1725d.tar.gz
git-87d4fdd9805edfe582bcbe92da638bb7eeb1725d.tar.bz2
Merge branch 'jk/connect-symref-info-leak-fix' into maint
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 cd21a1b..c72b1d1 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: