Skip to content

[Macros] Fix memory leak #74941

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 10, 2024
Merged

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Jul 3, 2024

A std::function instance remained in memory.

rdar://131048379

A `std::function` instance remained in memory.

rdar://131048379
@rintaro
Copy link
Member Author

rintaro commented Jul 3, 2024

preset=buildbot_incremental_linux,lsan,tools=RDA,stdlib=DA,test=no
@swift-ci Please test with preset Linux Platform

@rintaro
Copy link
Member Author

rintaro commented Jul 3, 2024

@swift-ci Please smoke test

@rintaro
Copy link
Member Author

rintaro commented Jul 3, 2024

OK this seems to be not enough...

@rintaro
Copy link
Member Author

rintaro commented Jul 4, 2024

The same preset test in release/6.0 passed. So the remaining leaks seem to be unrelated.
#74740

@ahoppen
Copy link
Member

ahoppen commented Jul 4, 2024

I just checked and the remaining leaks are also caused by #73725. LSAN passes fine before that PR was merged and all the failures started occurring after it was merged.

@xedin xedin removed their request for review July 9, 2024 16:20
@rintaro
Copy link
Member Author

rintaro commented Aug 10, 2024

@swift-ci Please smoke test

@rintaro
Copy link
Member Author

rintaro commented Aug 10, 2024

This doesn't resolve all the leaks. But it does fix one leak, so I'm merging this

@rintaro rintaro merged commit a07caa8 into swiftlang:main Aug 10, 2024
3 of 4 checks passed
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