summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-01-13 18:56:34 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-01-13 18:56:34 (GMT)
commit5dd93ebcbf912e359029236bb975f06a19147ded (patch)
tree7e96644604e8e7f9dad6a2f10d5fcdb47dd25169 /src
parent2ad18c24ac2344e6153eb26f2f5bf22e23254278 (diff)
downloadhdf5-5dd93ebcbf912e359029236bb975f06a19147ded.zip
hdf5-5dd93ebcbf912e359029236bb975f06a19147ded.tar.gz
hdf5-5dd93ebcbf912e359029236bb975f06a19147ded.tar.bz2
[svn-r8058] Purpose:
Bug fix Description: Plug another small memory leak for fill-values. Platforms tested: FreeBSD 4.9 (sleipnir) too minor to require h5committest
Diffstat (limited to 'src')
-rw-r--r--src/H5D.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/H5D.c b/src/H5D.c
index f7e09ab..08c37c5 100644
--- a/src/H5D.c
+++ b/src/H5D.c
@@ -2420,6 +2420,10 @@ H5D_open_oid(H5G_entry_t *ent, hid_t dxpl_id)
ret_value = dataset;
done:
+ /* Release fill value information */
+ if (H5O_reset(H5O_FILL_ID, &fill) <0)
+ HDONE_ERROR(H5E_DATASET, H5E_CANTRELEASE, NULL, "unable to release fill-value info")
+
if (ret_value==NULL && dataset) {
if (H5F_addr_defined(dataset->ent.header))
H5O_close(&(dataset->ent));