From 447d13e82bd4901b42cabf1580c889b29d5f906b Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Mon, 23 Apr 2012 14:21:23 -0500 Subject: [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 --- src/H5Smpio.c | 1 + 1 file changed, 1 insertion(+) 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 */ -- cgit v0.12