Re: [PATCH] Fortran: fix minor front-end memleaks

2024-11-26 Thread Harald Anlauf
Am 26.11.24 um 23:12 schrieb Harald Anlauf: Am 26.11.24 um 21:09 schrieb Paul Richard Thomas: Hi Harald, Looks good to me. Thanks Paul Thanks, Paul. Pushed as r15-5701-geff7e72815ada5 . This should have read r15-5708-g94f98f67f7271f, the testcase in the other one was used in the testing f

Re: [PATCH] Fortran: fix minor front-end memleaks

2024-11-26 Thread Harald Anlauf
Am 26.11.24 um 21:09 schrieb Paul Richard Thomas: Hi Harald, Looks good to me. Thanks Paul Thanks, Paul. Pushed as r15-5701-geff7e72815ada5 . On Tue, 26 Nov 2024 at 19:51, Harald Anlauf wrote: Dear all, the attached patch fixes two minor front-end memleaks I saw when working on recent

Re: [PATCH] Fortran: fix minor front-end memleaks

2024-11-26 Thread Paul Richard Thomas
Hi Harald, Looks good to me. Thanks Paul On Tue, 26 Nov 2024 at 19:51, Harald Anlauf wrote: > Dear all, > > the attached patch fixes two minor front-end memleaks I saw when working > on recent PRs (pr117774 is one of them) and running f951 under valgrind. > > Regtested on x86_64-pc-linux-gnu.

[PATCH] Fortran: fix minor front-end memleaks

2024-11-26 Thread Harald Anlauf
From: Harald Anlauf Date: Tue, 26 Nov 2024 20:37:35 +0100 Subject: [PATCH] Fortran: fix minor front-end memleaks gcc/fortran/ChangeLog: * expr.cc (find_inquiry_ref): Fix memleak introduced by scanning the reference chain to find and simplify inquiry references. * symbol.cc