From: mquinson Date: Thu, 29 Oct 2009 16:10:40 +0000 (+0000) Subject: plug a memleak X-Git-Tag: SVN~895 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/a403166f75e2b915cb00ab34e7a574f27a6bb49b?ds=inline plug a memleak git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6822 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- 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; }