Re: [PATCH] Fix libcpp PCH related memory leaks (PR middle-end/56461)

2013-03-01 Thread Tom Tromey
> "Jakub" == Jakub Jelinek writes: Jakub> 2013-03-01 Jakub Jelinek Jakub> PR middle-end/56461 Jakub> * files.c (_cpp_save_file_entries): Free result at the end. Jakub> * pch.c (cpp_string_free): New function. Jakub> (cpp_save_state): Use it in htab_create call. Jakub> (cpp_write_pch_d

[PATCH] Fix libcpp PCH related memory leaks (PR middle-end/56461)

2013-03-01 Thread Jakub Jelinek
Hi! This patch fixes various memory leaks in libcpp during PCH writing. Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk? 2013-03-01 Jakub Jelinek PR middle-end/56461 * files.c (_cpp_save_file_entries): Free result at the end. * pch.c (cpp_string_fr