www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15140] New:

https://issues.dlang.org/show_bug.cgi?id=15140

          Issue ID: 15140
           Summary: std.experimental.allocator.building_blocks.free_list.F
                    reeList leaks memory
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: briancschott gmail.com

Copied from a comment on the merge request on Github:

FreeList has no destructor. This means that if there is a free list backed by
Mallocator, any memory that user code tried to deallocate but was still on the
free list at the time that the list went out of scope will be leaked.

--
Oct 02 2015