Valgrind supp file and memory allocation fixes.