diff options
author | Mikael Morin <mikael@gcc.gnu.org> | 2023-02-24 22:11:17 +0100 |
---|---|---|
committer | Mikael Morin <mikael@gcc.gnu.org> | 2023-02-24 22:14:20 +0100 |
commit | 24c9edfa73632276d7698c103f35833f29804d98 (patch) | |
tree | 03eb074b71262dfcdfc7b703bf9ae7f4c2fc2b4e /libgfortran/generated | |
parent | 45f406c4f62e516b58dcda20b5a7aa43ff0aa0f3 (diff) | |
download | gcc-24c9edfa73632276d7698c103f35833f29804d98.zip gcc-24c9edfa73632276d7698c103f35833f29804d98.tar.gz gcc-24c9edfa73632276d7698c103f35833f29804d98.tar.bz2 |
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.
Diffstat (limited to 'libgfortran/generated')
0 files changed, 0 insertions, 0 deletions