diff options
author | Neil Fortner <nfortne2@hdfgroup.org> | 2008-08-17 18:04:51 (GMT) |
---|---|---|
committer | Neil Fortner <nfortne2@hdfgroup.org> | 2008-08-17 18:04:51 (GMT) |
commit | f6f7968df4d45b956fed8609ac70fc0def2de6eb (patch) | |
tree | 2fe9c952d92a814c8030a1f784b71ddaafabccae /src | |
parent | 3d53b71a91d7c11fe81ce56fae890053db1dbee5 (diff) | |
download | hdf5-f6f7968df4d45b956fed8609ac70fc0def2de6eb.zip hdf5-f6f7968df4d45b956fed8609ac70fc0def2de6eb.tar.gz hdf5-f6f7968df4d45b956fed8609ac70fc0def2de6eb.tar.bz2 |
[svn-r15478] Removed vestigal code from H5SM_delete_from_index() which would have
dereferenced an uninitialized pointer if it had been reachable. Closes bz
#1280.
Tested: kagiso, smirom, linew (h5committest)
Diffstat (limited to 'src')
-rwxr-xr-x | src/H5SM.c | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -1582,8 +1582,6 @@ H5SM_delete_from_index(H5F_t *f, hid_t dxpl_id, H5O_t *open_oh, H5HF_t *fheap = NULL; /* Fractal heap that contains the message */ size_t buf_size; /* Size of the encoded message (out) */ void *encoding_buf = NULL; /* The encoded message (out) */ - H5O_loc_t oloc; /* Object location for message in object header */ - H5O_t *oh = NULL; /* Object header for message in object header */ unsigned type_id; /* Message type to operate on */ herr_t ret_value = SUCCEED; @@ -1716,15 +1714,6 @@ H5SM_delete_from_index(H5F_t *f, hid_t dxpl_id, H5O_t *open_oh, } /* end if */ done: - /* Unprotect & close the object header if we opened one */ - if(oh && oh != open_oh) { - if(H5AC_unprotect(oloc.file, dxpl_id, H5AC_OHDR, oloc.addr, oh, H5AC__NO_FLAGS_SET) < 0) - HDONE_ERROR(H5E_OHDR, H5E_PROTECT, FAIL, "unable to release object header") - - if(H5O_close(&oloc) < 0) - HDONE_ERROR(H5E_OHDR, H5E_CANTRELEASE, FAIL, "unable to close object header") - } /* end if */ - /* Release the SOHM list */ if(list && H5AC_unprotect(f, dxpl_id, H5AC_SOHM_LIST, header->index_addr, list, H5AC__DIRTIED_FLAG) < 0) HDONE_ERROR(H5E_CACHE, H5E_CANTUNPROTECT, FAIL, "unable to close SOHM index") |