Problems with memory leak fixes

Daniel Jacobowitz drow@mvista.com
Tue Apr 1 00:08:00 GMT 2003


As Andrew already pointed out, the use of concat in dwarf2.c is incorrect. 
Worse, the fix is incorrect.  The filename is saved in add_line_info, and
can not be free'd in decode_line_info; fixing this leak will take more
careful attention.  Reverting the patch fixes twelve failures in the LD
testsuite on i686-pc-linux-gnu.

GDB does not use this code so that doesn't explain which fix broke GDB.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer



More information about the Binutils mailing list