Re: PATCH: Memory leak appending original mail
From: Morten Shearman Kirkegaard <moki_at_invalid.domain>
Date: Tue, 16 Feb 2010 18:00:42 +0100
Date: Tue, 16 Feb 2010 18:00:42 +0100
On Tue, 2010-02-16 at 18:35 +1100, Ben Schmidt wrote:
> > I looked at the code, and got thinking. Since the loop is only entered
> > if str is not NULL, and str is only used inside the loop, couldn't we
> > just free str inside the loop?
> >
> > Proposed patch attached.
>
> Yeah, that works! Go for it!
Committed to CVS.
Morten
-- Morten Shearman Kirkegaard <moki_at_fabletech.com> CTO, FableTech http://fabletech.com/Received on Tue Feb 16 2010 - 19:00:42 EET