[LLVMbugs] [Bug 15846] False positive "potential leak of an object" with wrapper reset method

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Apr 25 17:02:53 PDT 2013


Jordan Rose <jordan_rose at apple.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |jordan_rose at apple.com
         Resolution|---                         |INVALID

--- Comment #1 from Jordan Rose <jordan_rose at apple.com> ---
CFStringCreateWithCString could some day do some magic uniquing and return the
same string back. (Seems very reasonable for, say, the empty string.)

More seriously, you have an implementation that's broken in certain edge cases,
and just because this probably isn't one of them today doesn't mean that the
code is really correct. You can always use an assertion instead of a comparison
if you don't want to handle that case.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130426/5ab21b1f/attachment.html>

More information about the llvm-bugs mailing list