https://llvm.org/bugs/show_bug.cgi?id=23037

            Bug ID: 23037
           Summary: Memory leak in Process.cpp
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Created attachment 14105
  --> https://llvm.org/bugs/attachment.cgi?id=14105&action=edit
Small test case. Compile with MSVC debug and run

The routine getElapsedWallTime() in Process.cpp allocates dynamic memory on
line 36 (trunk). Since the memory is assigned to static in local scope the
block is leaked when program exists.

Note: When linking LLVM/CLANG and boost unit test infrastructure using MSVC
this leak is shown upon process exist. Boost enable the MSVC runtime dynamic
memory debugging very early and traps all allocations.

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