-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Closed
Labels
Description
| Bugzilla Link | 2519 |
| Resolution | FIXED |
| Resolved on | Nov 07, 2018 00:22 |
| Version | unspecified |
| OS | MacOS X |
| Attachments | Test program. Use make static-analysis to run the analyzer. |
| Reporter | LLVM Bugzilla Contributor |
| CC | @tkremenek |
Extended Description
The static analyzer flags false memory leaks on some objects that the program under analysis actually does release, if it does so using CFRelease.
The problem seems to be related to putting the object into a CF collection before releasing it. The program also releases the collection, also using CFRelease. Simply creating a CF object and releasing it is not enough to reproduce the bug.