X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/07c319ec54d6fc778ee3cc5e75a747242006723e..f5fd55f293d7e019e8c23e7ff76e2b3743e40cd6:/src/msg/host.c diff --git a/src/msg/host.c b/src/msg/host.c index 8d8c075773..f5cbf871e1 100644 --- a/src/msg/host.c +++ b/src/msg/host.c @@ -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); }