Re: [PATCH] fix a potentional memory leak

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


On Sat, Nov 8, 2008 at 7:32 PM, Maarten Maathuis <madman2003@xxxxxxxxx> wrote:
> It is my understanding that if realloc returns NULL, it did nothing.
> You then proceed to allocate and copy manually
> As far as i understand you should also free e0 afterwards. This should
> be confirmed by someone who knows the code.

I think that the free will fail, or do bad things, when e0 was
pointing inside a block that was mmapped, which is the case where the
!e branch gets taken (either that, or the system is out of memory).

Fontconfig mailing list

[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux