Instruments reports memory leak in -[NSURLRequest mutableCopy]
| Originator: | heath.borders | ||
| Number: | rdar://11596316 | Date Originated: | 05-Jun-2012 09:04 AM |
| Status: | Open | Resolved: | |
| Product: | iPad SDK | Product Version: | 5.1 |
| Classification: | Serious Bug | Reproducible: | Always |
05-Jun-2012 09:04 AM Heath Borders: Summary: When I call -[NSURLRequest mutableCopy] instruments reports a memory leak. I've worked around the bug by writing a workaround version of mutableCopy for my purposes. Steps to Reproduce: Run the included app using the leaks instrument on either the simulator or device. A leak should be reported. Expected Results: No leak should be reported Actual Results: A leak is reported. Regression: Notes: Switch SHOW_LEAK to 0 to observe the mutableCopy workaround not cause a leak. 05-Jun-2012 09:09 AM Heath Borders: The example project exists on github: https://github.com/hborders/RNCachingURLProtocol/tree/radar_11596316
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!