[llvm-bugs] [Bug 38835] AnnotateAttr leaks its annotations

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Sep 4 22:33:01 PDT 2018


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

Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |richard-llvm at metafoo.co.uk
         Resolution|---                         |INVALID

--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
It sure does look like this is a memory leak, but the placement operator new we
use here allocates memory from a slab allocator owned by the ASTContext. The
memory is freed when the slab allocator is destroyed in the ASTContext
destructor.

Thank you for the report!

-- 
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/20180905/bc6bc7a3/attachment.html>


More information about the llvm-bugs mailing list