summaryrefslogtreecommitdiff
path: root/Box deallocation principle.md
blob: 0174a4b4e263d80e9c19ea8071e407110495e1d5 (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.