3 ms·
> When you say "manual memory management" if you're thinking C-style malloc-free then you have a point, it's very easy to forget a free() somewhere. But any lan
by rayiner 8y ago
> When you say "manual memory management" if you're thinking C-style malloc-free then you have a point, it's very easy to forget a free() somewhere. But any language with destructors can handle these situations without much more overhead than GC-based approaches.
What happens when that object is shared and still referenced from somewhere else? Now you have a use after free error waiting to happen.