Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove leaky xbt_strdup: MSG_mailbox_new already does it (and takes a const char*)
authorthiery <thiery@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 7 Dec 2010 12:23:37 +0000 (12:23 +0000)
committerthiery <thiery@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 7 Dec 2010 12:23:37 +0000 (12:23 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9054 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/msg/host.c

index 8d8c075..f5cbf87 100644 (file)
@@ -50,7 +50,7 @@ m_host_t __MSG_host_create(smx_host_t workstation, void *data)
     sprintf(alias, "%s:%d", name, i);
 
     /* the key of the mailbox (in this case) is build from the name of the host and the channel number */
-    simdata->mailboxes[i] = MSG_mailbox_new(xbt_strdup(alias));
+    simdata->mailboxes[i] = MSG_mailbox_new(alias);
     memset(alias, 0, MAX_ALIAS_NAME + 1);
   }