Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
connect.c: fix leak in parse_one_symref_info()
[gitweb.git]
/
connect.c
diff --git
a/connect.c
b/connect.c
index 8cb93b0720d9a33d8fc0cddb21c3d1c1a789da96..8af002bf0fadcee5619f3773d7014af178e6d5e5 100644
(file)
--- 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: