Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'smpi-topo'
[simgrid.git] / teshsuite / smpi / mpich3-test / coll / allred3.c
index aaf8a23..cf16324 100644 (file)
@@ -182,10 +182,12 @@ int main( int argc, char *argv[] )
        buf = (int *)malloc( max_offset * sizeof(int) );
        if (!buf) {
            MPI_Abort( MPI_COMM_WORLD, 1 );
+            exit(1);
        }
        bufout = (int *)malloc( max_offset * sizeof(int) );
        if (!bufout) {
            MPI_Abort( MPI_COMM_WORLD, 1 );
+            exit(1);
        }
 
        initMat( comm, buf );