diff options
author | Neil Fortner <nfortne2@hdfgroup.org> | 2008-08-28 22:07:32 (GMT) |
---|---|---|
committer | Neil Fortner <nfortne2@hdfgroup.org> | 2008-08-28 22:07:32 (GMT) |
commit | 5d49cf770acae2912224d27e55b96fc2ba6abf49 (patch) | |
tree | ad3097a1b0140cf5a892425432176c72f348c466 /src | |
parent | f384b17625179b29475b2ec836c949fe3b9d5e44 (diff) | |
download | hdf5-5d49cf770acae2912224d27e55b96fc2ba6abf49.zip hdf5-5d49cf770acae2912224d27e55b96fc2ba6abf49.tar.gz hdf5-5d49cf770acae2912224d27e55b96fc2ba6abf49.tar.bz2 |
[svn-r15552] Fix potential memory leak in H5E_close_msg_cb.
Tested: kagiso
Diffstat (limited to 'src')
-rw-r--r-- | src/H5E.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -615,9 +615,12 @@ H5E_close_msg_cb(void *obj_ptr, hid_t obj_id, void *key) HDassert(err_msg); /* Close the message if it is in the class being closed */ - if(err_msg->cls == cls) + if(err_msg->cls == cls) { + if(H5E_close_msg(err_msg) < 0) + HGOTO_ERROR(H5E_ERROR, H5E_CANTCLOSEOBJ, FAIL, "unable to close error message") if(NULL == H5I_remove(obj_id)) HGOTO_ERROR(H5E_ERROR, H5E_CANTREMOVE, FAIL, "unable to remove error message") + } /* end if */ done: FUNC_LEAVE_NOAPI(ret_value) |