Originally Posted by
nonoob
Yes. Freeing memory does not automatically zero out its contents. It will be reused when the system needs it. It should NOT be depended upon to retain any data though. Things could change in there any time because it has been designated as available.
Computers save time by not writing any superfluous data, such as zeroes, to storage that is marked as "free". Just like on hard-drives, where old data can sometimes be recovered from so called erased files. Why write stuff when there's usually no expectation that anyone would want to read it.