In https://doc.rust-lang.org/book/ch09-01-unrecoverable-errors-with-panic.html it says:
by taking an action that causes our code to panic […] or by explicitly calling the panic! macro, […] we cause a panic in our program. By default, these panics will print a failure message, unwind, clean up the stack, and quit.
My question is, what happens to the stack if abort on a panic, instead unwinding? This will make Rust not clean up the stack, but is that not what the OS does anyway after a process ends? Will the allocated memory in the stack (and heap) just stay there until I reboot the computer?