3 ms·
Not correct. It is very rare for memory ever to be freed to the OS before process exit. Malloc never does. And, zeroing the memory, if code later uses it like
by ncmncm 4y ago
Not correct.
It is very rare for memory ever to be freed to the OS before process exit. Malloc never does.
And, zeroing the memory, if code later uses it like a pointer, that will be null and the use will trap.