This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [lto] PATCH: map/unmap LTO sections, + bug fixes


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]