Skip to content

Conversation

@steakhal
Copy link

@steakhal steakhal commented Dec 3, 2025

Fixes PR60896 - false positive leak reports in various smart pointer scenarios including temporaries, inheritance, direct constructor calls, and mixed ownership patterns. Previously, the analyzer had no smart pointer handling in checkPostCall, causing it to report false positive leaks for memory properly managed by smart pointers while missing legitimate raw pointer leaks.

(cherry picked from commit ff9b296)
Fixes rdar://163052948

… in temporary objects (llvm#152751)

Fixes PR60896 - false positive leak reports in various smart pointer scenarios including temporaries, inheritance, direct constructor calls, and mixed ownership patterns. Previously, the analyzer had no smart pointer handling in
`checkPostCall`, causing it to report false positive leaks for memory properly managed by smart pointers while missing legitimate raw pointer leaks.

---------

Co-authored-by: Balazs Benics <[email protected]>
Co-authored-by: Donát Nagy <[email protected]>

(cherry picked from commit ff9b296)
Fixes rdar://163052948
@steakhal steakhal requested a review from ziqingluo-90 December 3, 2025 11:33
@steakhal steakhal requested a review from a team as a code owner December 3, 2025 11:33
@steakhal
Copy link
Author

steakhal commented Dec 3, 2025

@swift-ci test macos

@steakhal
Copy link
Author

steakhal commented Dec 3, 2025

@swift-ci test windows

@steakhal
Copy link
Author

steakhal commented Dec 3, 2025

@swift-ci test linux

@steakhal
Copy link
Author

steakhal commented Dec 3, 2025

@swift-ci test llvm

@steakhal steakhal merged commit 629ce99 into stable/21.x Dec 4, 2025
5 checks passed
@steakhal steakhal deleted the steakhal/eng-163052948-cherrypick branch December 4, 2025 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants