Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
doc fix [no-ci]
[simgrid.git] / examples / c / app-masterworker / app-masterworker.c
index f5856c0..5dbb223 100644 (file)
@@ -71,11 +71,11 @@ static void worker(int argc, char* argv[])
     double* payload = (double*)sg_mailbox_get(mailbox);
 
     if (*payload == FINALIZE) {
-      free(payload); /* - Exit if 'finalize' is received */
+      xbt_free(payload); /* - Exit if 'finalize' is received */
       break;
     }
     sg_actor_execute(*payload); /*  - Otherwise, process the received number of flops*/
-    free(payload);
+    xbt_free(payload);
   }
   XBT_INFO("I'm done. See you!");
 }