[Bug fortran/108923] memory leak of get_intrinsic_dummy_arg result
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Mar 12 10:48:31 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108923
--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Mikael Morin
<mikael@gcc.gnu.org>:
https://gcc.gnu.org/g:cd65c727fd6d5a252964dbeb3a735daa0a521a89
commit r12-9243-gcd65c727fd6d5a252964dbeb3a735daa0a521a89
Author: Mikael Morin <mikael@gcc.gnu.org>
Date: Fri Feb 24 22:11:17 2023 +0100
fortran: Plug leak of associated_dummy memory. [PR108923]
This fixes a memory leak by accompanying the release of
gfc_actual_arglist elements' memory with a release of the
associated_dummy field memory (if allocated).
Actual argument copy is adjusted as well so that each copy can free
its field independently.
PR fortran/108923
gcc/fortran/ChangeLog:
* expr.cc (gfc_free_actual_arglist): Free associated_dummy
memory.
(gfc_copy_actual_arglist): Make a copy of the associated_dummy
field if it is set in the original element.
(cherry picked from commit 24c9edfa73632276d7698c103f35833f29804d98)
More information about the Gcc-bugs
mailing list