From a403166f75e2b915cb00ab34e7a574f27a6bb49b Mon Sep 17 00:00:00 2001 From: mquinson Date: Thu, 29 Oct 2009 16:10:40 +0000 Subject: [PATCH] plug a memleak git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6822 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/simix/smx_action.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/simix/smx_action.c b/src/simix/smx_action.c index 4003661164..0f8221251e 100644 --- a/src/simix/smx_action.c +++ b/src/simix/smx_action.c @@ -401,6 +401,7 @@ char *SIMIX_action_get_name(smx_action_t action) /** @brief Change the name of the action. Warning, the string you provide is not strdup()ed */ void SIMIX_action_set_name(smx_action_t action,char *name) { + xbt_free(action->name); action->name = name; } -- 2.20.1