diff options
author | Robb Matzke <matzke@llnl.gov> | 1998-05-01 05:16:50 (GMT) |
---|---|---|
committer | Robb Matzke <matzke@llnl.gov> | 1998-05-01 05:16:50 (GMT) |
commit | 65bb86375cfecac3e95ad1285db627a4a19eaabb (patch) | |
tree | 48151aa76db2a93929e682f3e7626d1b881364ca /src/H5F.c | |
parent | 59ea5ff28fb23ab4bd00f36da3268b2a0518c42c (diff) | |
download | hdf5-65bb86375cfecac3e95ad1285db627a4a19eaabb.zip hdf5-65bb86375cfecac3e95ad1285db627a4a19eaabb.tar.gz hdf5-65bb86375cfecac3e95ad1285db627a4a19eaabb.tar.bz2 |
[svn-r383] ./src/H5A.c
./src/H5F.c
./src/H5G.c
./src/H5O.c
./src/H5Osdspace.c
./src/H5T.c
./src/H5Tconv.c
./src/H5Z.c
./test/big.c
./test/cmpd_dset.c
./test/dsets.c
./test/extend.c
./test/istore.c
Now that I have a home-grown version of Purify I fixed all the
leaks in all the test files.
Diffstat (limited to 'src/H5F.c')
-rw-r--r-- | src/H5F.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -537,11 +537,17 @@ H5F_dest(H5F_t *f) if (f) { if (0 == --(f->shared->nrefs)) { - /* Do not close the root group since we didn't count it */ + /* + * Do not close the root group since we didn't count it, but free + * the memory associated with it. + */ + H5MM_xfree (f->shared->root_grp); + f->shared->root_grp=NULL; if (H5AC_dest(f)) { HERROR (H5E_FILE, H5E_CANTINIT, "problems closing file"); ret_value = FAIL; /*but keep going*/ } + f->shared->cwfs = H5MM_xfree (f->shared->cwfs); f->shared = H5MM_xfree(f->shared); } f->name = H5MM_xfree(f->name); |