summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2014-05-14 21:08:48 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2014-05-14 21:08:48 (GMT)
commit4b2f4f74fab402b7e4837a8d770121f3ffa02ea5 (patch)
tree023dc0e4e8120dc2173c9ab9729b8e79d83d53a3
parent6c78599065bf0170d69a96084751aa5c0373b6dc (diff)
downloadhdf5-4b2f4f74fab402b7e4837a8d770121f3ffa02ea5.zip
hdf5-4b2f4f74fab402b7e4837a8d770121f3ffa02ea5.tar.gz
hdf5-4b2f4f74fab402b7e4837a8d770121f3ffa02ea5.tar.bz2
[svn-r25193] fix bug in Map get with VL data
-rw-r--r--src/H5VLiod_map.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/H5VLiod_map.c b/src/H5VLiod_map.c
index 04b9ec0..f671f2e 100644
--- a/src/H5VLiod_map.c
+++ b/src/H5VLiod_map.c
@@ -888,12 +888,14 @@ done:
}
if(!is_coresident) {
- /* free block handle */
- if(HG_SUCCESS != HG_Bulk_handle_free(bulk_block_handle))
- HGOTO_ERROR_FF(FAIL, "can't free bds block handle");
- if(val_buf) {
- free(val_buf);
- val_buf = NULL;
+ if(!val_is_vl || (val_is_vl && client_val_buf_size)) {
+ /* free block handle */
+ if(HG_SUCCESS != HG_Bulk_handle_free(bulk_block_handle))
+ HGOTO_ERROR_FF(FAIL, "can't free bds block handle");
+ if(val_buf) {
+ free(val_buf);
+ val_buf = NULL;
+ }
}
}