From 2e3cd3e57b6d6954c31ea17235e84a61c364266f Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Tue, 20 May 2003 15:18:51 -0500 Subject: [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. --- src/H5Dio.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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() */ -- cgit v0.12