[PATCH] Fix some memory leaks

2025-01-10 Thread Richard Biener
The following fixes memory leaks found compiling SPEC CPU 2017 with valgrind. Bootstrapped on x86_64-unknown-linux-gnu, testing in progress. * df-core.cc (rest_of_handle_df_finish): Release dflow for problems without free function (like LR). * gimple-crc-optimization.cc (c

Re: [PATCH] Fix some memory leaks

2015-03-11 Thread Richard Biener
On March 11, 2015 8:04:25 PM CET, Jakub Jelinek wrote: >Hi! > >Valgrind reported some memory leaks. record_builtin_type calls >just get_identifier on the name, and get_identifier never uses the >original >string for storage, it always allocates it on its own, so using xstrdup >as get_identifier a

[PATCH] Fix some memory leaks

2015-03-11 Thread Jakub Jelinek
Hi! Valgrind reported some memory leaks. record_builtin_type calls just get_identifier on the name, and get_identifier never uses the original string for storage, it always allocates it on its own, so using xstrdup as get_identifier argument leaks the memory. Bootstrapped/regtested on x86_64-lin