Skip to content

scan-build mishandles CFDictionaryCreate #2891

@llvmbot

Description

@llvmbot
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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions