Add a talloc failure check