Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix a new/free mismatch
authorMartin Quinson <martin.quinson@loria.fr>
Wed, 8 Mar 2017 09:49:42 +0000 (10:49 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Wed, 8 Mar 2017 09:49:42 +0000 (10:49 +0100)
src/smpi/smpi_deployment.cpp

index f652e42..bfb684b 100644 (file)
@@ -86,7 +86,7 @@ void smpi_deployment_cleanup_instances(){
   xbt_dict_foreach(smpi_instances, cursor, name, instance) {
     if(instance->comm_world!=MPI_COMM_NULL)
       while (instance->comm_world->group()->unuse() > 0);
   xbt_dict_foreach(smpi_instances, cursor, name, instance) {
     if(instance->comm_world!=MPI_COMM_NULL)
       while (instance->comm_world->group()->unuse() > 0);
-    xbt_free(instance->comm_world);
+    delete instance->comm_world;
     MSG_barrier_destroy(instance->finalization_barrier);
   }
   xbt_dict_free(&smpi_instances);
     MSG_barrier_destroy(instance->finalization_barrier);
   }
   xbt_dict_free(&smpi_instances);