X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/30828b2cedfd5dac27dbfcdf0c02a0ae48b87d3b..53ef75ab57752782c82fd7c106626a772940dd0a:/teshsuite/smpi/mpich3-test/coll/bcastzerotype.c diff --git a/teshsuite/smpi/mpich3-test/coll/bcastzerotype.c b/teshsuite/smpi/mpich3-test/coll/bcastzerotype.c index 166647879a..d6716d4de7 100644 --- a/teshsuite/smpi/mpich3-test/coll/bcastzerotype.c +++ b/teshsuite/smpi/mpich3-test/coll/bcastzerotype.c @@ -26,8 +26,8 @@ int main(int argc, char *argv[]) /* a random non-zero sized buffer */ #define NELEM (10) - buf = malloc(NELEM*sizeof(int)); - assert(buf!=NULL); + buf = malloc(NELEM * sizeof(int)); + assert(buf); for (i = 0; i < NELEM; i++) { buf[i] = wrank * NELEM + i; @@ -47,6 +47,8 @@ int main(int argc, char *argv[]) assert(buf[i] == wrank * NELEM + i); } + free(buf); + MPI_Type_free(&type); MPI_Finalize();