Skip to content

Commit 4cad566

Browse files
committed
Fortran: fix frontend memleak with DO CONCURRENT [PR122564]
PR fortran/122564 gcc/fortran/ChangeLog: * resolve.cc (resolve_locality_spec): Delete temporary hash_set.
1 parent a01a300 commit 4cad566

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gcc/fortran/resolve.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8754,6 +8754,8 @@ resolve_locality_spec (gfc_code *code, gfc_namespace *ns)
87548754
plist = &((*plist)->next);
87558755
}
87568756
}
8757+
8758+
delete data.sym_hash;
87578759
}
87588760

87598761
/* Resolve a list of FORALL iterators. The FORALL index-name is constrained

0 commit comments

Comments
 (0)