The APR Pools are a fundamental building block of APR and Apache, and are the basis for all resource management. They serve to allocate memory, either directly (in a malloc-like manner) or indirectly (e.g. in string manipulation), and, crucially, ensure the memory is freed at the appropriate time. But they extend much further, to ensure that other resources such as files or mutexes can be allocate