summaryrefslogtreecommitdiff
path: root/When heap data is deallocated.md
diff options
context:
space:
mode:
authorJasper Ras <jras@hostnet.nl>2025-08-08 22:44:15 +0200
committerJasper Ras <jras@hostnet.nl>2025-08-08 22:44:15 +0200
commit22675cd8dc75d8b8d4b0f818f5b093efbc364802 (patch)
tree90156d37dccf13f012d535e7d92273259e3d5c17 /When heap data is deallocated.md
parent295b343aecf330e830d79f06e0efc511e7d76da1 (diff)
vault backup: 2025-08-08 22:44:15HEADmain
Diffstat (limited to 'When heap data is deallocated.md')
-rw-r--r--When heap data is deallocated.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/When heap data is deallocated.md b/When heap data is deallocated.md
new file mode 100644
index 0000000..832881f
--- /dev/null
+++ b/When heap data is deallocated.md
@@ -0,0 +1,7 @@
+[[Rust]]
+[[To put data on the heap use a Box]]
+[[Ownership]]
+
+
+---
+Heap memory is freed automatically when the frame of the variable who **owns** it is freed. \ No newline at end of file