[LLVMbugs] [Bug 23037] New: Memory leak in Process.cpp
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Mar 26 17:54:21 PDT 2015
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: unassignedbugs at nondot.org
Reporter: uri_mann at symantec.com
CC: llvmbugs at cs.uiuc.edu
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150327/107e0c00/attachment.html>
More information about the llvm-bugs
mailing list