From 22675cd8dc75d8b8d4b0f818f5b093efbc364802 Mon Sep 17 00:00:00 2001 From: Jasper Ras Date: Fri, 8 Aug 2025 22:44:15 +0200 Subject: vault backup: 2025-08-08 22:44:15 --- When heap data is deallocated.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 When heap data is deallocated.md (limited to 'When heap data is deallocated.md') 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 -- cgit v1.2.3