summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2000-10-27 20:00:02 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2000-10-27 20:00:02 (GMT)
commit592f0fc876ad6365f6149d28b89891e283e45d88 (patch)
treeb05acc3e5182d79b6575cdedc567c3d46382e384
parent246b9fff37c7d806da5e7ab6613d380fa85c75dd (diff)
downloadhdf5-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.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/H5I.c b/src/H5I.c
index 3f7ad0b..15ad9c2 100644
--- a/src/H5I.c
+++ b/src/H5I.c
@@ -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);