Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge master into mc-process
[simgrid.git] / teshsuite / smpi / mpich3-test / coll / allred4.c
index 32e0c00..1638657 100644 (file)
@@ -198,11 +198,13 @@ int main( int argc, char *argv[] )
            buf = (int *)malloc( count * 9 * sizeof(int) );
            if (!buf) {
                MPI_Abort( MPI_COMM_WORLD, 1 );
+                exit(1);
            }
 
            bufout = (int *)malloc( count * 9 * sizeof(int) );
            if (!bufout) {
                MPI_Abort( MPI_COMM_WORLD, 1 );
+                exit(1);
            }
 
            for (i=0; i < count; i++) {