[LLVMbugs] [Bug 21683] New: SimpleReference leak in SimpleDefinedAtom

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Nov 27 04:20:42 PST 2014


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

            Bug ID: 21683
           Summary: SimpleReference leak in SimpleDefinedAtom
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: devlists at shadowlab.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

When linking, SimpleDefinedAtom are allocated using a llvm::bumpPtr (at least
for Mach-O linking).

The SimpleDefinedAtom destructor is never called, and so its
std::vector<SimpleReference> member is never destroyed.

After linking clang, it results in a leaks of more than 177000 SimpleReference
objects (65MB).

-- 
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/20141127/6549d7f4/attachment.html>


More information about the llvm-bugs mailing list