Landing: d28e5377395b
Project / Subsystem
gcc / ada
Date
2026-09-22
Author
Andrew Teylu
Commit
d28e5377395b71d2d21e77c65fe9d54c6cba91a6
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- ada
- patch_id
- —
- commit_hash
- d28e5377395b71d2d21e77c65fe9d54c6cba91a6
- source_type
- github
- headline
- Ada: Close DWARF 5 line-string stream
- tldr
- Fixes a resource leak by closing the DWARF 5 line-string stream when an object file is closed.
- author
- Andrew Teylu
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • ada
- • dwarf
- • debugging
- • resource leak
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-22T00:00:00.000Z
The Ada compiler’s DWARF 5 support, when enabled, creates a mapped stream for the .debug_line_str section. The Close procedure for DWARF contexts was not properly closing this stream, leading to leaked memory allocations. This commit modifies Close to ensure the line-string stream is properly closed before the object file is finalized, preventing resource leaks.