Skip to content

[SR-1552] Fix memory leak in NSMutableData and NSData #380

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
Jul 8, 2016

Conversation

mbvreddy
Copy link
Contributor

This is fix for bug https://bugs.swift.org/browse/SR-1552

Memory held by NSData._bytes never gets reclaimed as __kCFDontDeallocate is set on NSData always.

@phausler
Copy link
Contributor

This looks about right. I need to double check some other interactions before merging this.

@ianpartridge
Copy link
Contributor

Hi @phausler - any update? Also, could we get this fix into swift-3.0-preview-1-branch?

@djones6
Copy link
Contributor

djones6 commented Jun 9, 2016

Resolving this leak is important to server side applications on Linux.
@phausler - were you able to complete your checks?

@mbvreddy
Copy link
Contributor Author

mbvreddy commented Jul 8, 2016

@phausler can this be merged?

@phausler phausler merged commit 73218c8 into swiftlang:master Jul 8, 2016
@phausler
Copy link
Contributor

phausler commented Jul 8, 2016

From what I can tell we actually had a similar fix already applied to the internal versions of CF, unfortunately I was bogged down with other tasks so there was a bit of delay on getting this in - so it will have to hit in the next cut of prebuilt toolchains

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.

4 participants