It's more a question of the assumptions that users of a given API make about security.
In the general memory allocation case, users of the APIs assume that information in freed memory is gone forever and won't be readable by another user later on.
Users that send data over a network don't (or shouldn't) assume that the data is private. If they require privacy, they know they must take additional steps to ensure it.
Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds