[LLVMbugs] [Bug 15606] New: false-positive leak with std::auto_ptr and reset

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Mar 26 15:31:00 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=15606

            Bug ID: 15606
           Summary: false-positive leak with std::auto_ptr and reset
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
          Assignee: kremenek at apple.com
          Reporter: bruce.r.stephens at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

With current trunk (2013/03/26) I get a report of a leak for the following:

#include <memory>

int
main()
{
  std::auto_ptr<int> a;

  a.reset(new int);
}

(I'm reasonably sure this didn't provoke a report a few days ago, but I haven't
bisected.)

-- 
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/20130326/f241eb24/attachment.html>


More information about the llvm-bugs mailing list