Files
rust/library/alloc/src
Sidney Cammeresi 137d4eaf12 BTreeMap: Don't leak allocators when initializing nodes
Memory was allocated via `Box::leak` and thence intended to be tracked
and deallocated manually, but the allocator was also leaked, not
tracked, and never dropped.  Now it is dropped immediately.

According to my reading of the `Allocator` trait, if a copy of the
allocator remains live, then its allocations must remain live.  Since
the B-tree has a copy of the allocator that will only be dropped after
the nodes, it's safe to not store the allocator in each node (which
would be a much more intrusive change).
2025-09-24 18:08:32 -07:00
..
2025-08-20 20:31:33 -04:00
2025-08-20 17:08:46 +01:00
2025-09-01 21:38:26 -04:00
2025-09-01 21:38:26 -04:00
2025-04-28 06:56:13 +10:00
2025-07-27 23:03:07 -07:00
2024-12-05 14:14:17 -08:00