(*t)->fd = (*((*t)->type->openfunc))(pathname, oflags, mode);
if ((*t)->fd == -1)
{
libtar_hash_free((*t)->h, NULL);
free(*t);
return -1;
}