Fix use of talloc buffers