Re: PATCH: Memory leak appending original mail
From: Ben Schmidt <mail_ben_schmidt_at_invalid.domain>
Date: Tue, 16 Feb 2010 18:35:42 +1100
Date: Tue, 16 Feb 2010 18:35:42 +1100
> 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!
Ben.
Received on Tue Feb 16 2010 - 09:35:42 EET