From 12e8471ecf53fc4993c26335996af9a78e5ca666 Mon Sep 17 00:00:00 2001 From: thiery Date: Tue, 7 Dec 2010 12:23:37 +0000 Subject: [PATCH 1/1] Remove leaky xbt_strdup: MSG_mailbox_new already does it (and takes a const char*) git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9054 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/msg/host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.20.1