summaryrefslogtreecommitdiff
path: root/Box deallocation principle.md
blob: 10975c4c53e17f2a2bb93c63c0d5d130b16fdb2e (plain)
1
2
3
4
5
6
[[Rust principles]]
[[When heap data is deallocated]]

---

If a variable owns a box, when Rust deallocates the variable’s frame, then Rust deallocates the box’s heap memory.