NSHTTPCookie leaks when creation returns nil
| Originator: | magicpop | ||
| Number: | rdar://13061247 | Date Originated: | 22-Jan-2013 12:16 PM |
| Status: | Open | Resolved: | |
| Product: | iPhone SDK | Product Version: | 6.0 |
| Classification: | Performance | Reproducible: | Always |
22-Jan-2013 12:16 PM Matthew Bischoff: Summary: When attempting to create a NSHTTPCookie with initWithProperties or cookieWithProperties, if the method returns nil, it leaks an NSHTTPCookie. Steps to Reproduce: 1. Create an NSHTTPCookie missing required properties. Expected Results: 1. Nil is reurned. Actual Results: 1. Nil is returned. 2. An object is leaked. Regression: Unknown. Tested in iOS 6. Notes: Sample project attached. Run in Instruments. 22-Jan-2013 12:16 PM Matthew Bischoff: 'NYTCookieLeaker.zip' was successfully uploaded Sample Project: http://mttb.me/MMLP
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!