Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
category will be strduped in surf.cpp: Action::setCategory. No need to
authorsuter <frederic.suter@cc.in2p3.fr>
Fri, 29 Nov 2013 08:39:54 +0000 (09:39 +0100)
committersuter <frederic.suter@cc.in2p3.fr>
Fri, 29 Nov 2013 08:39:54 +0000 (09:39 +0100)
do it twice. leak --

src/surf/instr_surf.c

index 71e63b4..9975b45 100644 (file)
@@ -57,6 +57,6 @@ void TRACE_surf_action(surf_action_t surf_action, const char *category)
   if (!category)
     return;
 
-  surf_action_set_category(surf_action, xbt_strdup(category));
+  surf_action_set_category(surf_action, category);
 }
 #endif /* HAVE_TRACING */