Heap allocation (source code)

= Heap allocation

Heap allocation creates an <software object> whose lifetime need not match one lexical procedure call. Other <software objects> can retain references to it after the constructing call returns. Automatic storage reclamation therefore follows reachability or another memory-management discipline, rather than simply returning from that call.