[PATCH] Fix libcpp PCH related memory leaks (PR middle-end/56461)
Tom Tromey
tromey@redhat.com
Fri Mar 1 21:03:00 GMT 2013
>>>>> "Jakub" == Jakub Jelinek <jakub@redhat.com> writes:
Jakub> 2013-03-01 Jakub Jelinek <jakub@redhat.com>
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_deps): Free ss->defs. Destroy ss->definedhash.
Looks good to me. This is ok, thanks.
Tom
More information about the Gcc-patches
mailing list