diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-06-13 13:27:05 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-06-13 13:27:05 -0700 |
commit | 87d4fdd9805edfe582bcbe92da638bb7eeb1725d (patch) | |
tree | 3a7946b5faf6a15fc32292f966bde16152965754 | |
parent | e0538abaf7ad330ab639f418e9de82ef8adbe5bb (diff) | |
parent | ef4fe5617eadc24fd09ce7778b77bb87f147480c (diff) | |
download | git-87d4fdd9805edfe582bcbe92da638bb7eeb1725d.tar.gz git-87d4fdd9805edfe582bcbe92da638bb7eeb1725d.tar.xz |
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.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: |