https://gcc.gnu.org/g:7bfa8b37da8d22eb907994c08006e6aafd755e2e
commit r16-5225-g7bfa8b37da8d22eb907994c08006e6aafd755e2e Author: Richard Biener <[email protected]> Date: Thu Nov 13 13:53:43 2025 +0100 Fix memory leak in pass_x86_cse The following makes sure to delete the loads we previously allocated with new. gcc/ * config/i386/i386-features.cc (pass_x86_cse::x86_cse): Delete loads. Diff: --- gcc/config/i386/i386-features.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/config/i386/i386-features.cc b/gcc/config/i386/i386-features.cc index 8e277843f23c..f1f118d5b755 100644 --- a/gcc/config/i386/i386-features.cc +++ b/gcc/config/i386/i386-features.cc @@ -4810,6 +4810,9 @@ pass_x86_cse::x86_cse (void) df_process_deferred_rescans (); } + FOR_EACH_VEC_ELT (loads, i, load) + delete load; + df_clear_flags (DF_DEFER_INSN_RESCAN); timevar_pop (TV_MACH_DEP);
