diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2004-01-06 18:44:36 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2004-01-06 18:44:36 (GMT) |
commit | 56bf3cb4d3c9290e71180b7699a77f84a7f8c509 (patch) | |
tree | 902a3b7e423ec56f0bf6200f8c403a086861a4cb /src | |
parent | 0e53db4964c1b615f7553f370d9a451fedd06252 (diff) | |
download | hdf5-56bf3cb4d3c9290e71180b7699a77f84a7f8c509.zip hdf5-56bf3cb4d3c9290e71180b7699a77f84a7f8c509.tar.gz hdf5-56bf3cb4d3c9290e71180b7699a77f84a7f8c509.tar.bz2 |
[svn-r8027] Purpose:
Bug fix
Description:
Fix small memory leak of fill-value information inside the library.
Solution:
"reset" the fill-value object header message, so that the internal buffer
gets freed.
Platforms tested:
FreeBSD 4.9 (sleipnir)
too minor to require h5committest
Diffstat (limited to 'src')
-rw-r--r-- | src/H5D.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1538,6 +1538,10 @@ H5D_update_entry_info(H5F_t *file, hid_t dxpl_id, H5D_t *dset, H5P_genplist_t *p HGOTO_ERROR(H5E_DATASET, H5E_CANTINIT, FAIL, "unable to update modification time message"); done: + /* Release fill value information */ + if (H5O_reset(H5O_FILL_ID, &fill) <0) + HDONE_ERROR(H5E_DATASET, H5E_CANTRELEASE, FAIL, "unable to release fill-value info") + /* Release pointer to object header itself */ if(ent!=NULL && oh!=NULL) if(H5O_unprotect(ent,oh, dxpl_id)<0) |