Skip to content

[Stdlib] Fix an overrelease in -[__SwiftNativeNSError description]. #29904

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

Conversation

mikeash
Copy link
Contributor

@mikeash mikeash commented Feb 18, 2020

getDescription takes its argument at +1, but the implementation was passing the value directly. This caused the contained error value to be destroyed.

rdar://problem/59512630

getDescription takes its argument at +1, but the implementation was passing the value directly. This caused the contained error value to be destroyed.

rdar://problem/59512630
@mikeash mikeash requested a review from gottesmm February 18, 2020 16:30
@mikeash
Copy link
Contributor Author

mikeash commented Feb 18, 2020

@swift-ci please test

@mikeash mikeash requested a review from jckarter February 18, 2020 18:16
Copy link
Contributor

@jckarter jckarter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Nice catch!

@mikeash mikeash merged commit 6c19d6f into swiftlang:master Feb 18, 2020
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