mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-02-23 16:59:54 +08:00
Merge branch 'patch-3' of https://github.com/gsjaardema/netcdf-c into consolidate-gh
This commit is contained in:
commit
9fde5ed227
@ -1987,12 +1987,12 @@ write_nc3_strict_att(hid_t hdf_grpid)
|
||||
BAIL(NC_EFILEMETA);
|
||||
|
||||
exit:
|
||||
if (spaceid && (H5Sclose(spaceid) < 0))
|
||||
if (spaceid > 0 && (H5Sclose(spaceid) < 0))
|
||||
BAIL2(NC_EFILEMETA);
|
||||
#ifdef EXTRA_TESTS
|
||||
num_spaces--;
|
||||
#endif
|
||||
if (attid && (H5Aclose(attid) < 0))
|
||||
if (attid > 0 && (H5Aclose(attid) < 0))
|
||||
BAIL2(NC_EFILEMETA);
|
||||
return retval;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user