mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-24 16:04:40 +08:00
now closing att HDF5 typeid in HDF5 close code
This commit is contained in:
parent
695e295734
commit
5cbde66781
@ -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++) */
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user