diff options
author | Jasper Ras <jras@hostnet.nl> | 2025-08-08 22:44:15 +0200 |
---|---|---|
committer | Jasper Ras <jras@hostnet.nl> | 2025-08-08 22:44:15 +0200 |
commit | 22675cd8dc75d8b8d4b0f818f5b093efbc364802 (patch) | |
tree | 90156d37dccf13f012d535e7d92273259e3d5c17 /When heap data is deallocated.md | |
parent | 295b343aecf330e830d79f06e0efc511e7d76da1 (diff) |
Diffstat (limited to 'When heap data is deallocated.md')
-rw-r--r-- | When heap data is deallocated.md | 7 |
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 |