From: Samuel Lepetit Date: Tue, 26 Jun 2012 09:55:50 +0000 (+0200) Subject: Fix a memory leak. X-Git-Tag: v3_8~462 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/55a1f7c075eec4bb26ca9519473045c54187f894?ds=sidebyside Fix a memory leak. --- diff --git a/src/simix/smx_process.c b/src/simix/smx_process.c index dbef6463d2..7c7dbb6457 100644 --- a/src/simix/smx_process.c +++ b/src/simix/smx_process.c @@ -147,6 +147,7 @@ void SIMIX_create_maestro_process() /** * \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) { @@ -162,7 +163,7 @@ smx_process_t SIMIX_process_create_from_wrapper(smx_process_arg_t args) { args->argc, args->argv, args->properties); - + xbt_free(args); return process; }