Hacker News new | ask | show | jobs
by Jtsummers 1458 days ago
Use after free is not a consequence of memory leaks. A memory leak is, specifically, memory which is still allocated but not referenced. Use after free errors can't happen if you don't free the memory.