Memory leak in -[NSURLCache removeCachedResponseForRequest:]
| Originator: | avedesk | ||
| Number: | rdar://26407849 | Date Originated: | 21-May-2016 11:29 PM |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | 9.3.2 |
| Classification: | Performance | Reproducible: | Always |
Summary: Calling -[NSURLCache removeCachedResponseForRequest:] will leak memory according to Instruments. Steps to Reproduce: 1. Call NSURLRequest* request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.apple.com"]]; NSURLCache* cache = [NSURLCache sharedURLCache]; [cache removeCachedResponseForRequest:request]; Expected Results: 1. No leaks in Instruments Actual Results: 2. Leaks in instruments, see screenshot. Regression: Notes:
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!