From 1c2448da9bd6e99d15c5920d0d8d4b292347dae9 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Sun, 25 Nov 2012 14:29:43 +0100 Subject: [PATCH] Apparently, I'm not allowed to free the memory here I'm not sure of why I MUST free it in the other path, 10 lines above, if I don't want to leak and why I MUST NOT free it here, but anyway. All test pass this way, let's be pragmatic and move forward. --- src/xbt/xbt_replay.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/xbt/xbt_replay.c b/src/xbt/xbt_replay.c index c0dbca1b66..cd6fa9acd8 100644 --- a/src/xbt/xbt_replay.c +++ b/src/xbt/xbt_replay.c @@ -156,8 +156,6 @@ int xbt_replay_action_runner(int argc, char *argv[]) action_fun function = (action_fun)xbt_dict_get(action_funs, evt[1]); function(evt); - for (i=0;evt[i]!= NULL;i++) - free((char*)evt[i]); free(evt); } else { XBT_WARN("%s: Ignore trace element not for me", -- 2.20.1