From: Alex Riesen Date: Fri, 15 Jun 2007 07:24:18 GMT Subject: Re: git-send-pack SIGSEGV.. Message-ID: <81b0412b0706150024m6a3c4d0bx866e1b25e770d299@mail.gmail.com> In-Reply-To: <7vr6od92nj.fsf@assigned-by-dhcp.pobox.com> On 6/15/07, Junio C Hamano wrote: > --- a/remote.c > +++ b/remote.c > @@ -252,6 +252,8 @@ static struct refspec *parse_ref_spec > ep = gp; > } > rs[i].src = xstrndup(sp, ep - sp); > + if (rs[i].pattern && !rs[i].dst) > + rs[i].dst = xstrdup(rs[i].src); It may be possible to just reuse rs[i].src - there is no deallocation of refspecs anywhere nor are src or dst detached from refspec (which may be bad, but probably is covered in libification effort).