[PATCH] solib_open, memory leak

msnyder@sonic.net msnyder@sonic.net
Sun Aug 5 03:17:00 GMT 2007


I hope it's not getting to be too late at night for me to do this stuff...

If I'm not spacy, solib_open is leaking memory, because openp passes back
a malloc buffer for temp_pathname.  In order to free it, it has to always
be a malloc buffer (hence no alloca etc).

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 138.txt
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20070805/1998b4e3/attachment.txt>


More information about the Gdb-patches mailing list