From 39880ddfdfe44812deaee20e8d4ae45a4b36025c Mon Sep 17 00:00:00 2001 From: Patrick Lu Date: Mon, 22 Mar 1999 13:22:03 -0500 Subject: [svn-r1158] put a free in the H5F_close to free up the memory I used for the path --- src/H5F.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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. -- cgit v0.12