now closing att HDF5 typeid in HDF5 close code

This commit is contained in:
Ed Hartnett 2018-10-18 03:43:53 -06:00
parent 695e295734
commit 5cbde66781
2 changed files with 12 additions and 12 deletions

View File

@ -495,16 +495,16 @@ nc4_rec_grp_HDF5_del(NC_GRP_INFO_T *grp)
i))))
return retval;
/* /\* Close HDF5 resources associated with attributes. *\/ */
/* for (a = 0; a < ncindexsize(grp->att); a++) */
/* { */
/* att = (NC_ATT_INFO_T *)ncindexith(grp->att, a); */
/* assert(att); */
/* Close HDF5 resources associated with attributes. */
for (a = 0; a < ncindexsize(grp->att); a++)
{
att = (NC_ATT_INFO_T *)ncindexith(grp->att, a);
assert(att);
/* /\* Close the HDF5 typeid. *\/ */
/* if (att->native_hdf_typeid && H5Tclose(att->native_hdf_typeid) < 0) */
/* return NC_EHDFERR; */
/* } */
/* Close the HDF5 typeid. */
if (att->native_hdf_typeid && H5Tclose(att->native_hdf_typeid) < 0)
return NC_EHDFERR;
}
/* /\* Close HDF5 resources associated with vars. *\/ */
/* for (i = 0; i < ncindexsize(grp->vars); i++) */

View File

@ -1412,9 +1412,9 @@ nc4_att_free(NC_ATT_INFO_T *att)
att->hdr.name = NULL;
}
/* Close the HDF5 typeid. */
if (att->native_hdf_typeid && H5Tclose(att->native_hdf_typeid) < 0)
return NC_EHDFERR;
/* /\* Close the HDF5 typeid. *\/ */
/* if (att->native_hdf_typeid && H5Tclose(att->native_hdf_typeid) < 0) */
/* return NC_EHDFERR; */
/* If this is a string array attribute, delete all members of the
* string array, then delete the array of pointers to strings. (The