r19370: Handle errors if talloc_reference fails