summaryrefslogtreecommitdiffstats
path: root/src/H5D.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-01-06 18:44:34 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-01-06 18:44:34 (GMT)
commitab9a8af7787484a8f9efd29f20ca2bab6f91f424 (patch)
treee564bb2f8486ee0056a8071ed607ea9738b51fa4 /src/H5D.c
parente59b3d3bcf0f95e1c2d90997280135a3ae8cdfee (diff)
downloadhdf5-ab9a8af7787484a8f9efd29f20ca2bab6f91f424.zip
hdf5-ab9a8af7787484a8f9efd29f20ca2bab6f91f424.tar.gz
hdf5-ab9a8af7787484a8f9efd29f20ca2bab6f91f424.tar.bz2
[svn-r8026] 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/H5D.c')
-rw-r--r--src/H5D.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/H5D.c b/src/H5D.c
index 05ecec0..a15f1a4 100644
--- a/src/H5D.c
+++ b/src/H5D.c
@@ -1532,6 +1532,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)