Skip to content

[Runtime] Fix leak of bridge objects in swift_generic_initWithTake #69977

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
Nov 27, 2023

Conversation

drexin
Copy link
Contributor

@drexin drexin commented Nov 18, 2023

rdar://118606044

The initWithTakeTable accidentally referenced bridgeRetain instead of copyingInitWithTake, which caused a leak when an object containing a bridge reference was also not bitwise takable.

@drexin
Copy link
Contributor Author

drexin commented Nov 18, 2023

@swift-ci smoke test

rdar://118606044

The initWithTakeTable accidentally referenced bridgeRetain instead of copyingInitWithTake, which caused a leak when an object containing a bridge reference was also not bitwise takable.
@drexin
Copy link
Contributor Author

drexin commented Nov 19, 2023

@swift-ci smoke test

@drexin
Copy link
Contributor Author

drexin commented Nov 19, 2023

@swift-ci smoke test windows

@drexin
Copy link
Contributor Author

drexin commented Nov 27, 2023

@swift-ci smoke test

@drexin drexin merged commit 011fce8 into swiftlang:main Nov 27, 2023
@drexin drexin deleted the wip-118606044 branch November 27, 2023 16:04
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