Skip to content
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

UnsafeMutalbePointer.allocate泄漏没有检查到 #28

Open
bupojung opened this issue Dec 31, 2018 · 0 comments
Open

UnsafeMutalbePointer.allocate泄漏没有检查到 #28

bupojung opened this issue Dec 31, 2018 · 0 comments

Comments

@bupojung
Copy link

bupojung commented Dec 31, 2018

@IBAction func makeLeaks(_ sender: Any) { let size = 51 * 1024 * 1024 let payload = UnsafeMutablePointer<UInt8>.allocate(capacity: size) let data = Data() data.copyBytes(to: payload, count: size) }
这份代码应该是会创建泄漏的内存的,但是用executeLeakCheck没有检测到

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

No branches or pull requests

1 participant