From baa92d18417cb91e2df78445d20c581999af0763 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Tue, 23 Oct 2012 13:24:03 +0200 Subject: [PATCH] Call gap_remove in generic_update_actions_state_lazy too. *** Please double-check this commit ! *** Try to mimic what's done in generic_update_actions_state_full. Fixes an "use after free" error with smpi_replay. --- src/surf/surf_action.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/surf/surf_action.c b/src/surf/surf_action.c index 90d1878604..e05e199402 100644 --- a/src/surf/surf_action.c +++ b/src/surf/surf_action.c @@ -434,6 +434,9 @@ void generic_update_actions_state_lazy(double now, double delta, surf_model_t mo model->action_state_set((surf_action_t) action, SURF_ACTION_DONE); surf_action_lmm_heap_remove(model->model_private->action_heap,action); + + if (model->gap_remove && model == surf_network_model) + model->gap_remove(action); } } } -- 2.20.1