Function xalloc_destroy()

Function Documentation

void xalloc_destroy()

This function must be called once when the application exits. Never call xalloc_destroy() manually except if using xallocator in a C-only application. If using xallocator exclusively in C files within your application code, you must call this function before the program exits. If using C++, ~XallocInitDestroy() must call xalloc_destroy automatically. Embedded systems that never exit need not call this function at all.

Called one time when the application exits to cleanup any allocated memory. ~XallocInitDestroy destructor calls this function automatically.