Running Example C.5 through valgrind shows us the exact locations of some errors: