X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8006a03b1ef66a0ddd4a4983ef170781a87a7225..fc6b5be5d61faef791bdbc4d5c52dcc1eb49dfb2:/teshsuite/smpi/mpich3-test/datatype/tresized.c diff --git a/teshsuite/smpi/mpich3-test/datatype/tresized.c b/teshsuite/smpi/mpich3-test/datatype/tresized.c index 069fddcecd..7b8c97ea80 100644 --- a/teshsuite/smpi/mpich3-test/datatype/tresized.c +++ b/teshsuite/smpi/mpich3-test/datatype/tresized.c @@ -39,6 +39,7 @@ int main( int argc, char *argv[] ) buf = (int *)malloc( count * 3 * sizeof(int) ); if (!buf) { MPI_Abort( comm, 1 ); + exit(1); } for (i=0; i<3*count; i++) buf[i] = -1; if (rank == source) { @@ -70,7 +71,7 @@ int main( int argc, char *argv[] ) } MPI_Type_free( &newtype ); - + free(buf); MTest_Finalize( errs ); MPI_Finalize(); return 0;