Skip to content

[5.9] Fix 5.9 LSAN leak #68371

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 2 commits into from
Sep 7, 2023
Merged

Conversation

hamishknight
Copy link
Contributor

Cherry-pick a couple of commits to try fix the currently failing LSAN bot https://ci.swift.org/job/oss-swift-5.9-RA-lsan-linux-ubuntu-18_04/.

We cannot depend on Swift's unsafe pointers using `malloc` under the
hood, so don't use `free` on them. Instead, expose entry points from
Swift to C++ to free any Swift-allocated data structures that need to
be deallocated from C++.
@hamishknight hamishknight requested a review from a team as a code owner September 7, 2023 12:01
@hamishknight
Copy link
Contributor Author

@swift-ci please test

@hamishknight hamishknight merged commit e105aca into swiftlang:release/5.9 Sep 7, 2023
@hamishknight hamishknight deleted the fix-leak-5.9 branch September 7, 2023 17:06
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.

2 participants