summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-05-20 20:18:51 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-05-20 20:18:51 (GMT)
commit2e3cd3e57b6d6954c31ea17235e84a61c364266f (patch)
treec1620a12536f8ec5a092af6a5a0e25d4b189a175
parent09ac3905b78b425266d25b3907e287e4d94edc84 (diff)
downloadhdf5-2e3cd3e57b6d6954c31ea17235e84a61c364266f.zip
hdf5-2e3cd3e57b6d6954c31ea17235e84a61c364266f.tar.gz
hdf5-2e3cd3e57b6d6954c31ea17235e84a61c364266f.tar.bz2
[svn-r6907] Purpose:
Bug fix Description: The chunk dataspace selection information for raw data I/O are being leaked. Solution: Free the chunk information during the cleanup code. Platforms tested: Solaris 2.6 (baldric) w/purify h5committest not needed.
-rw-r--r--src/H5Dio.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/H5Dio.c b/src/H5Dio.c
index 06d5a15..beb40ee 100644
--- a/src/H5Dio.c
+++ b/src/H5Dio.c
@@ -2404,8 +2404,12 @@ H5D_free_fchunk_info(void *_fchunk_info)
assert(fchunk_info);
+ /* Close the chunk's dataspace */
H5S_close(fchunk_info->space);
+ /* Free the actual chunk info */
+ H5FL_FREE(H5D_fchunk_info_t,fchunk_info);
+
FUNC_LEAVE_NOAPI_VOID;
} /* H5D_free_fchunk_info() */
@@ -2437,8 +2441,12 @@ H5D_free_mchunk_info(void *_mchunk_info)
assert(mchunk_info);
+ /* Close the chunk's dataspace */
H5S_close(mchunk_info->space);
+ /* Free the actual chunk info */
+ H5FL_FREE(H5D_mchunk_info_t,mchunk_info);
+
FUNC_LEAVE_NOAPI_VOID;
} /* H5D_free_mchunk_info() */