1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-06-02 01:16:12 +02:00

Merge branch 'jk/connect-symref-info-leak-fix'

Leakfix.

* jk/connect-symref-info-leak-fix:
  connect.c: fix leak in parse_one_symref_info()
This commit is contained in:
Junio C Hamano 2017-06-05 09:18:12 +09:00
commit a12bfb2bfb

View File

@ -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: