[cfe-dev] Suppress: Static Analysis false positive.

Ted Kremenek kremenek at apple.com
Thu Feb 25 09:48:05 PST 2010

The analyzer currently doesn't handle delegates in a clean way, so cases like these are helpful to see.  Could you file a bugzilla report with this example?  At the very least we can potentially silence the analyzer in these cases, and have it do something smarter over time.


On Feb 25, 2010, at 9:13 AM, Steven Osborn wrote:

> I have a bit of code I'm calling from a Apple's StoreKit library that
> looks something like:
> http://pastebin.com/1YgyXPf9
> Where you release the object in the callback function which leads to a
> false positive for a memory leak.
> I've dug through the documentation, but I can't find anything to help
> me suppress this particular warning.
> Thanks in advance,
> --
> Steven Osborn
> http://steven.bitsetters.com
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

More information about the cfe-dev mailing list