Bug 15140 – std.experimental.allocator.building_blocks.free_list.FreeList leaks memory

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-10-02T21:48:39Z
Last change time
2017-12-18T22:56:43Z
Assigned to
No Owner
Creator
briancschott

Comments

Comment #0 by briancschott — 2015-10-02T21:48:39Z
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.
Comment #1 by github-bugzilla — 2017-11-13T16:30:17Z
Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/b8d70b32fd4e6d7c936809a118b168bc68303dad Fix Issue 15140 - std.experimental.allocator.building_blocks.free_list.FreeList leaks memory https://github.com/dlang/phobos/commit/0b006c6f8cf97687f999e875559b2153391a1f7d Merge pull request #5856 from jercaianu/freeList Fix Issue 15140 - std.experimental.allocator.building_blocks.free_list.FreeList leaks memory
Comment #2 by github-bugzilla — 2017-12-18T22:56:43Z
Commits pushed to stable at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/b8d70b32fd4e6d7c936809a118b168bc68303dad Fix Issue 15140 - std.experimental.allocator.building_blocks.free_list.FreeList leaks memory https://github.com/dlang/phobos/commit/0b006c6f8cf97687f999e875559b2153391a1f7d Merge pull request #5856 from jercaianu/freeList