In the example provider component, an example showing memory allocation and freeing is in memory.cpp. \