diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2012-04-23 20:53:36 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2012-04-23 20:53:36 (GMT) |
commit | e43c3278c40f4edc43a641bf86bbdd79c629844c (patch) | |
tree | 6867cc4e9c91c9652dc72331da5b0d99bbc297f0 /src | |
parent | 0ce08d5b7eacff131a048fb621b364c7d0b72649 (diff) | |
download | hdf5-e43c3278c40f4edc43a641bf86bbdd79c629844c.zip hdf5-e43c3278c40f4edc43a641bf86bbdd79c629844c.tar.gz hdf5-e43c3278c40f4edc43a641bf86bbdd79c629844c.tar.bz2 |
[svn-r22313] Description:
Bring r22312 from trunk to 1.8 branch:
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')
-rw-r--r-- | src/H5Smpio.c | 1 |
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 */ |