Skip to content

[Foundation] Address a potential leak when writing a data to a URL and the file system representation fails #14176

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
Jan 26, 2018

Conversation

phausler
Copy link
Contributor

Resolves rdar://problem/36889982

@phausler
Copy link
Contributor Author

@swift-ci please smoke test

@phausler phausler requested review from parkera and gottesmm January 26, 2018 01:55
@gottesmm
Copy link
Contributor

@phausler Is it possible for you to make a test case that goes down that path? I will see if I can jerry-rig something for you vis-a-vis the leaks checking.

@phausler
Copy link
Contributor Author

I have a hunch on how to trigger it but it will require some subclassing shenanigans with NSURL. From what I can tell this cannot happen on Darwin platforms with properly constructed urls.

@gottesmm
Copy link
Contributor

Ok. Nm then.

@phausler phausler merged commit c734324 into swiftlang:master Jan 26, 2018
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