# Dynamic Memory Management

The Library makes use of a dynamic memory manager which handles allocation and deallocation of dynamic memory. The methods used for allocation and deallocation are wrapper functions around the native `malloc`, `calloc`, `realloc`, and `free` methods. Hence, the functionality of teh module is very similar to the native C interface but it allows for structured error recovery and application termination in case of failure. It covers especially the following three situations:

- Handling of allocation and deallocation of dynamic memory
- Recovering from temporary lack of available memory
- Panic handling in case a new allocation fails

Adding and Deleting Dynamic Memory Handlers