This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Problems with memory leak fixes
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: binutils at sources dot redhat dot com
- Cc: David Heine <dlheine at suif dot stanford dot edu>
- Date: Mon, 31 Mar 2003 19:08:44 -0500
- Subject: Problems with memory leak fixes
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