Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jk/connect-symref-info-leak-fix' into maint
author
Junio C Hamano
<gitster@pobox.com>
Tue, 13 Jun 2017 20:27:05 +0000
(13:27 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 13 Jun 2017 20:27:05 +0000
(13:27 -0700)
Leakfix.
* jk/connect-symref-info-leak-fix:
connect.c: fix leak in parse_one_symref_info()
connect.c
patch
|
blob
|
history
raw
(from parent 1:
e0538ab
)
diff --git
a/connect.c
b/connect.c
index cd21a1b6f725fc80e40759a8f9b26450633df6a8..c72b1d1151744c5e7c7b82f453892a1bc9b26021 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: