Why doesn't free() zero out the memory prior to releasing it?

后端 未结 14 2913
长情又很酷
长情又很酷 2020-12-15 12:17

When we free() memory in C, why is that memory not filled with zero? Is there a good way to ensure this happens as a matter of course when calling free()<

14条回答
提交回复
热议问题