Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Apparently, I'm not allowed to free the memory here
authorMartin Quinson <martin.quinson@loria.fr>
Sun, 25 Nov 2012 13:29:43 +0000 (14:29 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Sun, 25 Nov 2012 13:29:43 +0000 (14:29 +0100)
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

index c0dbca1..cd6fa9a 100644 (file)
@@ -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",