summaryrefslogtreecommitdiffstats
path: root/src/H5Ofill.c
diff options
context:
space:
mode:
authorMike McGreevy <mamcgree@hdfgroup.org>2010-05-14 18:44:36 (GMT)
committerMike McGreevy <mamcgree@hdfgroup.org>2010-05-14 18:44:36 (GMT)
commited4885a4852259db08b923eb12cec42cb24cd5c2 (patch)
tree0ed00416dfacee1323445e412559a17dfd277ad8 /src/H5Ofill.c
parent3cd3de7612a9758b6a89f09ad48da2c70c62f76a (diff)
downloadhdf5-ed4885a4852259db08b923eb12cec42cb24cd5c2.zip
hdf5-ed4885a4852259db08b923eb12cec42cb24cd5c2.tar.gz
hdf5-ed4885a4852259db08b923eb12cec42cb24cd5c2.tar.bz2
[svn-r18804] Purpose:
Fix memory leaks Description Added a routine to free memory which addresses a memory leak when variable length strings are used as fill values. Tested: h5committest and valgrind (on jam/amani) to confirm freed memory.
Diffstat (limited to 'src/H5Ofill.c')
-rw-r--r--src/H5Ofill.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/H5Ofill.c b/src/H5Ofill.c
index ffea9e6..ebe1eb5 100644
--- a/src/H5Ofill.c
+++ b/src/H5Ofill.c
@@ -965,6 +965,7 @@ H5O_fill_convert(H5O_fill_t *fill, H5T_t *dset_type, hbool_t *fill_changed, hid_
/* Update the fill message */
if(buf != fill->buf) {
+ H5T_vlen_reclaim_elmt(fill->buf, fill->type, dxpl_id);
H5MM_xfree(fill->buf);
fill->buf = buf;
} /* end if */