summaryrefslogtreecommitdiffstats
path: root/src/H5F.c
diff options
context:
space:
mode:
authorPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1999-03-22 18:22:03 (GMT)
committerPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1999-03-22 18:22:03 (GMT)
commit39880ddfdfe44812deaee20e8d4ae45a4b36025c (patch)
treec610b421f94270a5ee851e0abd19642514ece251 /src/H5F.c
parent8f0f2e440505cabdb0984a2b47db7d998040ecf3 (diff)
downloadhdf5-39880ddfdfe44812deaee20e8d4ae45a4b36025c.zip
hdf5-39880ddfdfe44812deaee20e8d4ae45a4b36025c.tar.gz
hdf5-39880ddfdfe44812deaee20e8d4ae45a4b36025c.tar.bz2
[svn-r1158]
put a free in the H5F_close to free up the memory I used for the path
Diffstat (limited to 'src/H5F.c')
-rw-r--r--src/H5F.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/H5F.c b/src/H5F.c
index a35bec9..57b4162 100644
--- a/src/H5F.c
+++ b/src/H5F.c
@@ -788,6 +788,7 @@ H5F_dest(H5F_t *f)
*/
--f->nrefs;
}
+
FUNC_LEAVE(ret_value);
}
@@ -1815,8 +1816,13 @@ H5F_close(H5F_t *f)
"unable to flush cache");
}
}
+#ifdef WIN32
+ /*free up the memory for path*/
- /*
+ free(f->shared->key.path);
+#endif
+
+ /*
* Destroy the H5F_t struct and decrement the reference count for the
* shared H5F_file_t struct. If the reference count for the H5F_file_t
* struct reaches zero then destroy it also.