ran C wrapper through Valgrind to fix memory leaks