Browse Source

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()
maint
Junio C Hamano 8 years ago
parent
commit
87d4fdd980
  1. 2
      connect.c

2
connect.c

@ -71,7 +71,7 @@ static void parse_one_symref_info(struct string_list *symref, const char *val, i @@ -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:

Loading…
Cancel
Save