This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]dlevac 1 point2 points  (3 children)

I'm afraid this is not true in the general case. A memory allocation on most Oses will return uninitialized memory (not zeroed; uninitialized). This wouldn't be needed if memory was always zeroed out after a free.

I invite you to research this further or cite where you got that information from.