Landing: 1a2de01fbac6

Project / Subsystem

gcc / fortran

Date

2026-06-30

Author

Paul Thomas

Commit

1a2de01fbac64f97fed6f63ff655b13bff831877

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
fortran
patch_id
commit_hash
1a2de01fbac64f97fed6f63ff655b13bff831877
source_type
github
headline
Fortran: Fix memory leak in pdt_86.f03 test case
tldr
Fixes a memory leak in the Fortran compiler's handling of derived types with allocatable components.
author
Paul Thomas
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • fortran
  • memory leak
  • compiler
discussion_id_link
bugzilla_pr
date
2026-06-30T00:00:00.000Z

A memory leak in GCC’s Fortran frontend has been fixed, stemming from issues in handling derived types that contain allocatable components. The fix ensures that such types are correctly marked, preventing memory from being leaked during compilation. Additionally, a related test case was updated to verify the resolution of a separate issue where a non-PDT version of a compiled routine was leaking memory.