diff options
author | Mike McGreevy <mamcgree@hdfgroup.org> | 2010-05-14 18:44:36 (GMT) |
---|---|---|
committer | Mike McGreevy <mamcgree@hdfgroup.org> | 2010-05-14 18:44:36 (GMT) |
commit | ed4885a4852259db08b923eb12cec42cb24cd5c2 (patch) | |
tree | 0ed00416dfacee1323445e412559a17dfd277ad8 /src/H5Ofill.c | |
parent | 3cd3de7612a9758b6a89f09ad48da2c70c62f76a (diff) | |
download | hdf5-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.c | 1 |
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 */ |