Garbage collection
Applies to: general
Garbage collection automatically frees memory that a program can no longer reach, so the developer does not free it by hand. It prevents many memory leaks and use-after-free bugs, at the cost of some runtime overhead and less predictable timing.
no references left to an object -> the collector may reclaim it