Fix some ancient memory errors discovered with the Valgrind engine mode...