Testing c library functions. Destructor believed to be implemented correctly, but stray temp variables and poor initialization causing valgrind errors.