home blog portfolio Ian Fisher

Manual memory management

The management of memory in a computer program with explicit calls to allocation and deallocation functions (e.g., malloc and free in C) in the text of the program. An alternative to garbage collection, in which management of memory is automatic. Manual memory management is theoretically more performant, but tends to lead to memory-safety bugs.

Even in C, the management of memory on the stack is automatic; only heap memory must be manually managed.