diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2000-10-27 20:00:02 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2000-10-27 20:00:02 (GMT) |
commit | 592f0fc876ad6365f6149d28b89891e283e45d88 (patch) | |
tree | b05acc3e5182d79b6575cdedc567c3d46382e384 | |
parent | 246b9fff37c7d806da5e7ab6613d380fa85c75dd (diff) | |
download | hdf5-592f0fc876ad6365f6149d28b89891e283e45d88.zip hdf5-592f0fc876ad6365f6149d28b89891e283e45d88.tar.gz hdf5-592f0fc876ad6365f6149d28b89891e283e45d88.tar.bz2 |
[svn-r2744] Purpose:
Bug fix
Description:
Forgot to decrement the number of objects in the group when removing
each one...
Solution:
Decrement the ID count when successfully removing each object from a
group.
Platforms tested:
None yet.
-rw-r--r-- | src/H5I.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -424,6 +424,9 @@ H5I_clear_group(H5I_type_t grp, hbool_t force) (unsigned long)(cur->obj_ptr)); } #endif /*H5I_DEBUG*/ + /* Decrement the number of IDs in the group */ + (grp_ptr->ids)--; + /* Add ID struct to free list */ next = cur->next; H5FL_FREE(H5I_id_info_t,cur); @@ -435,6 +438,9 @@ H5I_clear_group(H5I_type_t grp, hbool_t force) prev = cur; } } else { + /* Decrement the number of IDs in the group */ + (grp_ptr->ids)--; + /* Add ID struct to free list */ next = cur->next; H5FL_FREE(H5I_id_info_t,cur); |