X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c40ad14d15a23201f68728e1ced86dccafffa2c0..7f80c96356063a741966f244c8d00eaaf6f17fc0:/src/mc/mc_checkpoint.cpp?ds=sidebyside diff --git a/src/mc/mc_checkpoint.cpp b/src/mc/mc_checkpoint.cpp index cda2505020..05c9faff31 100644 --- a/src/mc/mc_checkpoint.cpp +++ b/src/mc/mc_checkpoint.cpp @@ -64,8 +64,7 @@ static void MC_snapshot_stack_free_voidp(void *s) static void local_variable_free(local_variable_t v) { - xbt_free(v->name); - xbt_free(v); + delete(v); } static void local_variable_free_voidp(void *v) @@ -306,10 +305,10 @@ static void mc_fill_local_variables_values(mc_stack_frame_t stack_frame, else region_type = 2; - local_variable_t new_var = xbt_new0(s_local_variable_t, 1); + local_variable_t new_var = new s_local_variable_t(); new_var->subprogram = stack_frame->frame; new_var->ip = stack_frame->ip; - new_var->name = xbt_strdup(current_variable->name); + new_var->name = current_variable->name; new_var->type = current_variable->type; new_var->region = region_type;