Simon suggests a better solution to valgrind's complaining about