2
0
mirror of https://github.com/HDFGroup/hdf5.git synced 2025-04-12 17:31:09 +08:00

[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
This commit is contained in:
Quincey Koziol 2012-04-23 14:21:23 -05:00
parent 3d90128b16
commit 447d13e82b

@ -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 */