This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [lto] PATCH: map/unmap LTO sections, + bug fixes
- From: Sandra Loosemore <sandra at codesourcery dot com>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Kenneth Zadeck <zadeck at naturalbridge dot com>
- Date: Thu, 14 Sep 2006 11:17:59 -0400
- Subject: Re: [lto] PATCH: map/unmap LTO sections, + bug fixes
- References: <4508D01C.60707@codesourcery.com> <4508D1D9.5030405@codesourcery.com>
Mark Mitchell wrote:
I think you have a memory leak here: "name" will be allocated with
malloc, but you never free it. I think you should call free before
returning, independent of the value returned by lto_elf_find_section_data.
Yup. Patch committed with that change.
-Sandra