From: Brandon Casey Date: Sat, 8 Oct 2011 03:20:22 +0000 (-0500) Subject: refs.c: free duplicate entries in the ref array instead of leaking them X-Git-Tag: v1.7.8-rc0~106^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=17d68a54def69b20b39dd4f7323b359a827e6017;p=git.git refs.c: free duplicate entries in the ref array instead of leaking them Signed-off-by: Brandon Casey Signed-off-by: Junio C Hamano --- diff --git a/refs.c b/refs.c index cbc4c5d28..df3929760 100644 --- a/refs.c +++ b/refs.c @@ -94,6 +94,7 @@ static void sort_ref_array(struct ref_array *array) die("Duplicated ref, and SHA1s don't match: %s", a->name); warning("Duplicated ref: %s", a->name); + free(b); continue; } i++;