3 ms·
> A memory leak means you lost the pointer to the memory, so now you can’t free it. that's an useless definition as otherwise it would be trivial to augment, s
by gpderetta 2y ago
> A memory leak means you lost the pointer to the memory, so now you can’t free it.
that's an useless definition as otherwise it would be trivial to augment, say, malloc to prevent memory leaks.
I would define a leak as unused memory that it is not otherwise reusable by a program.