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

           Summary: AsmStmt should not use SmallVector
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: AST
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


AsmStmt uses SmallVector, which can allocate memory using 'malloc()'.  This can
lead to memory leaks when we use the BumpPtrAllocator to allocate AST nodes and
we do not call the destructor of AsmStmt objects.

Fix: AsmStmt should allocate all memory it uses with the allocator associated
with ASTContext.


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- 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