diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2007-05-19 04:58:59 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2007-05-19 04:58:59 (GMT) |
commit | 52d71bcd6f19c7b0adb6544f4c79df94eb1135e4 (patch) | |
tree | cc7b05a2d59865db11f02f409ffeadb52cb2afd1 /src/H5SM.c | |
parent | eff3014d975a3118360fa38660af910af804cdcd (diff) | |
download | hdf5-52d71bcd6f19c7b0adb6544f4c79df94eb1135e4.zip hdf5-52d71bcd6f19c7b0adb6544f4c79df94eb1135e4.tar.gz hdf5-52d71bcd6f19c7b0adb6544f4c79df94eb1135e4.tar.bz2 |
[svn-r13770] Description:
Clean up various memory leaks, etc.
Tested on:
FreeBSD/32 6.2 (duty)
Diffstat (limited to 'src/H5SM.c')
-rwxr-xr-x | src/H5SM.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -2232,17 +2232,18 @@ done: * *------------------------------------------------------------------------- */ -herr_t +static herr_t H5SM_read_mesg(H5F_t *f, const H5SM_sohm_t *mesg, H5HF_t *fheap, H5O_t *open_oh, hid_t dxpl_id, size_t *encoding_size /*out*/, void ** encoded_mesg /*out*/) { size_t buf_size; void * encoding_buf=NULL; - herr_t ret_value = SUCCEED; H5O_loc_t oloc; H5O_t *oh = NULL; - FUNC_ENTER_NOAPI(H5SM_read_mesg, FAIL) + herr_t ret_value = SUCCEED; + + FUNC_ENTER_NOAPI_NOINIT(H5SM_read_mesg) HDassert(f); HDassert(mesg); @@ -2282,6 +2283,7 @@ H5SM_read_mesg(H5F_t *f, const H5SM_sohm_t *mesg, H5HF_t *fheap, udata.file = f; udata.type_id = mesg->msg_type_id; udata.encoding_buf = NULL; + udata.idx = 0; /* Use the "real" iterate routine so it doesn't try to protect the OH */ op.op_type = H5O_MESG_OP_APP; |