Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
be cleaner with memory
[simgrid.git] / teshsuite / smpi / io-ordered / io-ordered.c
index e5225dfbbdad3512915a772326c516a88331f606..7fae204439d22ca141b33b6c0177716e55bff6a7 100644 (file)
@@ -20,7 +20,7 @@ int main( int argc, char *argv[] )
     MPI_File_open( comm, (char*)"/scratch/lib/libsimgrid.so.3.6.2", MPI_MODE_RDWR | MPI_MODE_CREATE | MPI_MODE_DELETE_ON_CLOSE, MPI_INFO_NULL, &fh );\r
     MPI_Comm_size( comm, &size );\r
     MPI_Comm_rank( comm, &rank );\r
-    buf = (int *)malloc( 10+size * sizeof(int) );\r
+    buf = (int *)malloc( 10* sizeof(int) );\r
     buf[0] = rank;\r
  \r
     /* Write to file */\r