Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

CFRelease() not counted for obj-c ivars when using -analyzer-check-objc-missing-dealloc #7976

Open Quuxplusone opened 14 years ago

Quuxplusone commented 14 years ago
Bugzilla Link PR7533
Status NEW
Importance P normal
Reported by Kevin Ballard (kevin@sb.org)
Reported on 2010-06-30 14:23:24 -0700
Last modified on 2010-06-30 17:26:21 -0700
Version unspecified
Hardware PC All
CC kremenek@apple.com, llvm-bugs@lists.llvm.org
Fixed by commit(s)
Attachments
Blocks
Blocked by
See also

When the Clang static analyzer is run against an Obj-C codebase with the -analyzer-check-objc-missing-dealloc flag set, it warns about not releasing obj-c ivars in dealloc if the ivars were released using CFRelease() instead of -release.

Quuxplusone commented 14 years ago

Excellent point. In general the -analyzer-check-objc-missing-dealloc check needs to be completely overhauled, but this is one of those cases it should handle.