Hacker News new | past | comments | ask | show | jobs | submit login

malloc is not a system call, it is a C library function. Modern operating systems clear memory when providing it to a process, but malloc implementations reuse the same memory locations previously used an arbitrary number of times within the process and normally do not clear memory when it is reused (within the process) for performance reasons.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: