[Fontconfig] [PATCH] fix a potentional memory leak

Maarten Maathuis madman2003 at gmail.com
Sat Nov 8 16:32:27 PST 2008


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.

Maarten.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-fix-a-potential-leak.patch
Type: application/octet-stream
Size: 677 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20081109/c692da98/attachment.obj 


More information about the Fontconfig mailing list