Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
It's ok to pass NULL to xbt_free.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 31 Oct 2013 20:36:49 +0000 (21:36 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 31 Oct 2013 20:54:55 +0000 (21:54 +0100)
src/smpi/smpi_replay.c

index e8f0ada..9151825 100644 (file)
@@ -721,7 +721,7 @@ smpi_mpi_gatherv(send, send_size, MPI_CURRENT_TYPE,
   log_timed_action (action, clock);
   xbt_free(recvcounts);
   xbt_free(send);
   log_timed_action (action, clock);
   xbt_free(recvcounts);
   xbt_free(send);
-  if(recv)xbt_free(recv);
+  xbt_free(recv);
   xbt_free(disps);
 
 }
   xbt_free(disps);
 
 }