summaryrefslogtreecommitdiffstats
path: root/src/H5Smpio.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2012-04-23 19:21:23 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2012-04-23 19:21:23 (GMT)
commit447d13e82bd4901b42cabf1580c889b29d5f906b (patch)
treea41dca2ed3241cfeea90eb723043c6cd08a76f89 /src/H5Smpio.c
parent3d90128b169a23fd69f9d8dd603e67819333da5e (diff)
downloadhdf5-447d13e82bd4901b42cabf1580c889b29d5f906b.zip
hdf5-447d13e82bd4901b42cabf1580c889b29d5f906b.tar.gz
hdf5-447d13e82bd4901b42cabf1580c889b29d5f906b.tar.bz2
[svn-r22312] Description:
Correct error reported by user (Martin Otte) where we weren't using realloc'ed buffer in MPI datatype code. Tested on: Mac OSX/64 10.7.3 (amazon) w/parallel
Diffstat (limited to 'src/H5Smpio.c')
-rw-r--r--src/H5Smpio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/H5Smpio.c b/src/H5Smpio.c
index 7cd4c31..868a00f 100644
--- a/src/H5Smpio.c
+++ b/src/H5Smpio.c
@@ -583,6 +583,7 @@ H5S_obtain_datatype(const hsize_t *down, H5S_hyper_span_t *span,
blocklen = tmp_blocklen;
if(NULL == (tmp_inner_type = (MPI_Datatype *)H5MM_realloc(inner_type, alloc_count * sizeof(MPI_Datatype))))
HGOTO_ERROR(H5E_DATASPACE, H5E_CANTALLOC, FAIL, "can't allocate array of inner MPI datatypes")
+ inner_type = tmp_inner_type;
} /* end if */
/* Displacement should be in byte and should have dimension information */