Fix valgrind errors with memmove and talloc pools.