summaryrefslogtreecommitdiffstats
path: root/src/H5F.c
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2002-09-18 15:51:29 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2002-09-18 15:51:29 (GMT)
commit2aca3b77d63aa78d16262e23d929f2c13570a2d5 (patch)
tree54bf519b70e182e1628754915bca5cea24f71658 /src/H5F.c
parentd32ad090439ad97af135a269a60dbbff430b84da (diff)
downloadhdf5-2aca3b77d63aa78d16262e23d929f2c13570a2d5.zip
hdf5-2aca3b77d63aa78d16262e23d929f2c13570a2d5.tar.gz
hdf5-2aca3b77d63aa78d16262e23d929f2c13570a2d5.tar.bz2
[svn-r5929]
Purpose: bug fix Description: memory leak regarding the ID to name buffer Solution: added a new function H5G_free_ent_name that is called on several places of the library Platforms tested: windows 2000 linux, with cpp solaris, with fortran, cpp irix64, with parallel, fortran
Diffstat (limited to 'src/H5F.c')
-rw-r--r--src/H5F.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/H5F.c b/src/H5F.c
index 13421a1..afd0efc 100644
--- a/src/H5F.c
+++ b/src/H5F.c
@@ -1456,6 +1456,10 @@ done:
* Robb Matzke, 2000-10-31
* H5FL_FREE() aborts if called with a null pointer (unlike the
* original H5MM_free()).
+ *
+ * Pedro Vicente, <pvn@ncsa.uiuc.edu> 18 Sep 2002
+ * Added `id to name' support.
+ *
*-------------------------------------------------------------------------
*/
static herr_t
@@ -1472,6 +1476,10 @@ H5F_dest(H5F_t *f)
* the memory associated with it.
*/
if (f->shared->root_grp) {
+
+ /*Free the ID to name buffer */
+ H5G_free_grp_name(f->shared->root_grp);
+
H5FL_FREE(H5G_t,f->shared->root_grp);
f->shared->root_grp=NULL;
}