From: suter Date: Fri, 29 Nov 2013 08:39:54 +0000 (+0100) Subject: category will be strduped in surf.cpp: Action::setCategory. No need to X-Git-Tag: v3_11_beta~210 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/bf2a97fe09eeb8ff6653f404579784667c05ea6f?hp=0adb1d0d9e235da476b2b0c3f2923f8c8759829e category will be strduped in surf.cpp: Action::setCategory. No need to do it twice. leak -- --- diff --git a/src/surf/instr_surf.c b/src/surf/instr_surf.c index 71e63b47ef..9975b456c5 100644 --- a/src/surf/instr_surf.c +++ b/src/surf/instr_surf.c @@ -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 */