I'm having an issue with the following line of code: NSDictionary*serviceResult = (NSDictionary *)WSMethodInvocationInvoke( serviceCall );
[serviceResult release]; According to the documentation and the WSMethodInvocation.h header file, it is the caller's responsibility to release the returned serviceResult dictionary. However, when I run my code through the analyzer in Xcode, it says theĀ serviceResultĀ is released too many times, which would imply that it is already autoreleased. I Googled this and found several examples where it was not being released. If I comment-out the release code, the analyzer does not complain. What's interesting is that if it were truly a double-free, then it would crash. It doesn't. It runs just fine. Either the documentation is wrong or the analyzer is. Given how often this is called, it could potentially leak memory like crazy. _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
