Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix a memory leak.
authorSamuel Lepetit <samuel.lepetit@inria.fr>
Tue, 26 Jun 2012 09:55:50 +0000 (11:55 +0200)
committerSamuel Lepetit <samuel.lepetit@inria.fr>
Tue, 26 Jun 2012 09:55:56 +0000 (11:55 +0200)
src/simix/smx_process.c

index dbef646..7c7dbb6 100644 (file)
@@ -147,6 +147,7 @@ void SIMIX_create_maestro_process()
 
 /**
  * \brief Same as SIMIX_process_create() but with only one argument (used by timers).
 
 /**
  * \brief Same as SIMIX_process_create() but with only one argument (used by timers).
+ * This function frees the argument.
  * \return the process created
  */
 smx_process_t SIMIX_process_create_from_wrapper(smx_process_arg_t args) {
  * \return the process created
  */
 smx_process_t SIMIX_process_create_from_wrapper(smx_process_arg_t args) {
@@ -162,7 +163,7 @@ smx_process_t SIMIX_process_create_from_wrapper(smx_process_arg_t args) {
       args->argc,
       args->argv,
       args->properties);
       args->argc,
       args->argv,
       args->properties);
-
+  xbt_free(args);
   return process;
 }
 
   return process;
 }