Landing: 05c766374818
Project / Subsystem
gcc / libfortran
Date
2026-05-08
Author
Harald Anlauf
Commit
05c76637481870f2c3b3c970f0a16adad1652143
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- libfortran
- patch_id
- —
- commit_hash
- 05c76637481870f2c3b3c970f0a16adad1652143
- source_type
- github
- headline
- Libfortran: Fixed static analyzer warning in free_format_data.
- tldr
- Addresses a cppcheck warning by changing the argument to free_format_data to pass a pointer to a pointer.
- author
- Harald Anlauf
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • libfortran
- • static analysis
- • memory management
- • bugfix
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-08T00:00:00.000Z
A static analysis tool, cppcheck, reported a pointless assignment in the free_format_data function. The function was intended to nullify a pointer after freeing the memory it pointed to, but this wasn’t effective in C because arguments are passed by value. This commit changes the function to accept a pointer to a pointer, allowing it to nullify the original pointer. This resolves the static analyzer warning.