[Issue 12915] RedBlackTree leaks memory

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Jun 13 12:57:58 PDT 2014


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

--- Comment #3 from Steven Schveighoffer <schveiguy at yahoo.com> ---
OK, I misunderstood. I thought the issue was that the red black tree itself was
being pointed at, and that was causing the leak.

We certainly can null pointers as the nodes are deallocated. But the tree does
not go through and destroy all the nodes if you just forget the tree (and I
would argue it shouldn't). So this may solve the specific use case, but not the
general one.

--


More information about the Digitalmars-d-bugs mailing list