]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fortran: fix frontend memleak with DO CONCURRENT [PR122564]
authorHarald Anlauf <anlauf@gmx.de>
Tue, 4 Nov 2025 19:04:55 +0000 (20:04 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Tue, 4 Nov 2025 19:04:55 +0000 (20:04 +0100)
PR fortran/122564

gcc/fortran/ChangeLog:

* resolve.cc (resolve_locality_spec): Delete temporary hash_set.

gcc/fortran/resolve.cc

index 5fa408ec48ccafa04b5450143359a5bd6d497696..2a73f2a7ab5591b2f110dc2118a6202777ceac64 100644 (file)
@@ -8754,6 +8754,8 @@ resolve_locality_spec (gfc_code *code, gfc_namespace *ns)
          plist = &((*plist)->next);
        }
     }
+
+  delete data.sym_hash;
 }
 
 /* Resolve a list of FORALL iterators.  The FORALL index-name is constrained