Hierarchical alloc (halloc) is an extension to a standard malloc/free interface that simplifies tasks of memory disposal when allocated structures exhibit hierarchical properties. Halloc can be used for a number of tasks, including memory pooling, limited garbage collection, and simplified dynamic structure management.