summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1998-05-01 21:16:06 (GMT)
committerRobb Matzke <matzke@llnl.gov>1998-05-01 21:16:06 (GMT)
commit05eeb4d25b7af1135645e1b113c229badfca55c4 (patch)
tree3e9e2813e2d180b3d6deed9b48dd93e25f3fe894 /src
parent65bb86375cfecac3e95ad1285db627a4a19eaabb (diff)
downloadhdf5-05eeb4d25b7af1135645e1b113c229badfca55c4.zip
hdf5-05eeb4d25b7af1135645e1b113c229badfca55c4.tar.gz
hdf5-05eeb4d25b7af1135645e1b113c229badfca55c4.tar.bz2
[svn-r384] Changes since 19980430
---------------------- ./src/H5G.c Fixed a read/write of free memory that my home-brew purify doesn't catch (yet :-)
Diffstat (limited to 'src')
-rw-r--r--src/H5G.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/H5G.c b/src/H5G.c
index 33338f4..4c44212 100644
--- a/src/H5G.c
+++ b/src/H5G.c
@@ -1288,9 +1288,11 @@ H5G_close(H5G_t *grp)
if (H5O_close(&(grp->ent)) < 0) {
HRETURN_ERROR(H5E_SYM, H5E_CANTINIT, FAIL, "unable to close");
}
+ grp->nref = 0;
H5MM_xfree (grp);
+ } else {
+ --grp->nref;
}
- --grp->nref;
FUNC_LEAVE(SUCCEED);
}