From bf2a97fe09eeb8ff6653f404579784667c05ea6f Mon Sep 17 00:00:00 2001 From: suter Date: Fri, 29 Nov 2013 09:39:54 +0100 Subject: [PATCH 1/1] category will be strduped in surf.cpp: Action::setCategory. No need to do it twice. leak -- --- src/surf/instr_surf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.20.1