Fix minor memory leak in the maze code.