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

            Bug ID: 18320
           Summary: lsan reports tons of leaks in clang due to
                    -disable-free
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: ASSIGNED
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

The clang driver (lib/Driver/Tools.cpp) calls clang with -disable-free,
which causes LeakSanitizer to report tons of leaks.
Commenting out the line 'CmdArgs.push_back("-disable-free");' fixes the
problem. 

We need to find a more general way to remove -disable-free in presence 
of a leak detector (so that it works with pure lsan, asan+lsan. msan+lsan, etc)

-- 
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