summaryrefslogtreecommitdiff
path: root/When boxes are deallocated.md
diff options
context:
space:
mode:
Diffstat (limited to 'When boxes are deallocated.md')
-rw-r--r--When boxes are deallocated.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/When boxes are deallocated.md b/When boxes are deallocated.md
new file mode 100644
index 0000000..96c2c34
--- /dev/null
+++ b/When boxes are deallocated.md
@@ -0,0 +1,8 @@
+[[Rust]]
+[[Boxes live in the heap]]
+[[Ownership]]
+
+
+---
+
+A box's heap memory is freed automatically when the frame of the variable who owns the box is freed. \ No newline at end of file