diff options
author | Robb Matzke <matzke@llnl.gov> | 1998-05-01 21:16:06 (GMT) |
---|---|---|
committer | Robb Matzke <matzke@llnl.gov> | 1998-05-01 21:16:06 (GMT) |
commit | 05eeb4d25b7af1135645e1b113c229badfca55c4 (patch) | |
tree | 3e9e2813e2d180b3d6deed9b48dd93e25f3fe894 /src | |
parent | 65bb86375cfecac3e95ad1285db627a4a19eaabb (diff) | |
download | hdf5-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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); } |