Here, all the data structures accessed by the C/C++ codes are allocated on the "C-side" by (carefully) using "malloc/new." Valgrind is employed to make sure that there are no leaks (hopefully). It ...