Garbage, in the context of
computer science, refers to
objects,
data, or other regions of the memory of a computer system (or other system resources), which will not be used in any future computation by the system, or by a program running on it. As computer systems all have finite amounts of memory, it is frequently necessary to
deallocate garbage and return it to the
heap, or memory pool, so the underlying memory can be reused.