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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to