Landing: 2e38eea32662
Project / Subsystem
gcc / analyzer
Date
2026-01-19
Author
David Malcolm
Commit
2e38eea32662690f0f2e772094ed61b2812038cf
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- analyzer
- patch_id
- —
- commit_hash
- 2e38eea32662690f0f2e772094ed61b2812038cf
- source_type
- github
- headline
- Analyzer: Avoid naked "new"
- tldr
- Modernizes the analyzer by replacing raw `new` with `std::make_unique` for memory management.
- author
- David Malcolm
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • analyzer
- • memory management
- • modernization
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-01-19T00:00:00.000Z
This commit modernizes the GCC analyzer by replacing direct uses of new with std::make_unique for allocating unique pointers. This change enhances memory safety and simplifies resource management, aligning with modern C++ practices and reducing the risk of memory leaks.