From: Paul Bédaride Date: Wed, 7 May 2014 09:24:57 +0000 (+0200) Subject: Fix leak in process_join X-Git-Tag: v3_11~94^2~2 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/9ef6657fec2b0eacbd273c2e3a53dc9f4fb2c8a0 Fix leak in process_join --- diff --git a/src/simix/smx_process.c b/src/simix/smx_process.c index da0f7d22fb..60fc8a6abd 100644 --- a/src/simix/smx_process.c +++ b/src/simix/smx_process.c @@ -702,9 +702,10 @@ static int SIMIX_process_join_finish(smx_process_exit_status_t status, smx_actio SIMIX_simcall_answer(simcall); } } - - SIMIX_process_sleep_destroy(action); + surf_action_unref(action->sleep.surf_sleep); + action->sleep.surf_sleep = NULL; } + xbt_mallocator_release(simix_global->action_mallocator, action); return 0; }