summaryrefslogtreecommitdiffstats
path: root/tools/h5dump/h5dumpgentest.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-05-13 19:48:30 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-05-13 19:48:30 (GMT)
commite0824c482e50e534e21b0420e79f24a4bad2f0c4 (patch)
treea21f00f841cefeaf622eba137003c5df2f45d72c /tools/h5dump/h5dumpgentest.c
parent7b6bd8e299ba3052ddee7aa51abafda79ff5c793 (diff)
downloadhdf5-e0824c482e50e534e21b0420e79f24a4bad2f0c4.zip
hdf5-e0824c482e50e534e21b0420e79f24a4bad2f0c4.tar.gz
hdf5-e0824c482e50e534e21b0420e79f24a4bad2f0c4.tar.bz2
[svn-r6863] Purpose:
Bug fix Description: A few groups were left open after they were used. Solution: Closed them. :-) Platforms tested: FreeBSD 4.8 (sleipnir) h5committested
Diffstat (limited to 'tools/h5dump/h5dumpgentest.c')
-rw-r--r--tools/h5dump/h5dumpgentest.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/h5dump/h5dumpgentest.c b/tools/h5dump/h5dumpgentest.c
index 496a0f6..62e5d6d 100644
--- a/tools/h5dump/h5dumpgentest.c
+++ b/tools/h5dump/h5dumpgentest.c
@@ -1418,6 +1418,7 @@ hsize_t sdim;
}
H5Dclose(dataset);
+ H5Gclose(group);
H5Tclose(fxdlenstr);
H5Tclose(memtype);
H5Sclose(mem_space);
@@ -2826,7 +2827,7 @@ void gent_multi(void)
static void gent_large_objname(void)
{
- hid_t fid, group;
+ hid_t fid, group, group2;
char grp_name[128];
register int i;
@@ -2836,7 +2837,8 @@ static void gent_large_objname(void)
for (i = 0; i < 50; ++i) {
sprintf(grp_name, "this_is_a_large_group_name%d", i);
- group = H5Gcreate(group, grp_name, 0);
+ group2 = H5Gcreate(group, grp_name, 0);
+ H5Gclose(group2);
}
H5Gclose(group);