diff options
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 |