Fix memory leak.
Allow better Valgrind leak checks via a ./configure option.