https://gcc.gnu.org/g:4cad566793d0a2587a10f9669dfd0f5cdbd6d82d

commit r16-5032-g4cad566793d0a2587a10f9669dfd0f5cdbd6d82d
Author: Harald Anlauf <[email protected]>
Date:   Tue Nov 4 20:04:55 2025 +0100

    Fortran: fix frontend memleak with DO CONCURRENT [PR122564]
    
            PR fortran/122564
    
    gcc/fortran/ChangeLog:
    
            * resolve.cc (resolve_locality_spec): Delete temporary hash_set.

Diff:
---
 gcc/fortran/resolve.cc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gcc/fortran/resolve.cc b/gcc/fortran/resolve.cc
index 5fa408ec48cc..2a73f2a7ab55 100644
--- a/gcc/fortran/resolve.cc
+++ b/gcc/fortran/resolve.cc
@@ -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

Reply via email to