gcc/lto/lto.c: Free lto_file struct after closing the file

Richard Guenther richard.guenther@gmail.com
Mon Oct 8 12:41:00 GMT 2012


On Mon, Oct 8, 2012 at 2:39 PM, Tobias Burnus <burnus@net-b.de> wrote:
> lto_obj_file_open allocates:
>   lo = XCNEW (struct lto_simple_object);
> However, the data is never freed - neither explicitly nor in
> lto_obj_file_close.
>
> In the attached patch, I free the memory now after the call to
> lto_obj_file_close.
>
> Build and regtested on x86-64-gnu-linux.
> OK for the trunk?

Ok.

Thanks,
Richard.

> Tobias



More information about the Gcc-patches mailing list