From e0824c482e50e534e21b0420e79f24a4bad2f0c4 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Tue, 13 May 2003 14:48:30 -0500 Subject: [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 --- tools/h5dump/h5dumpgentest.c | 6 ++++-- 1 file 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); -- cgit v0.12