Add example for memory management of C libraries.