X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c1cefafb4bbcb85e9285d9172d12feefee4d4b18..be4b540460e5f67714677c3ecf9ff54d2916f0d8:/src/surf/workstation_ptask_L07.cpp?ds=sidebyside diff --git a/src/surf/workstation_ptask_L07.cpp b/src/surf/workstation_ptask_L07.cpp index 2b7a591aaf..3f9e00eefc 100644 --- a/src/surf/workstation_ptask_L07.cpp +++ b/src/surf/workstation_ptask_L07.cpp @@ -339,7 +339,7 @@ ResourcePtr NetworkL07Model::createResource(const char *name, e_surf_link_sharing_policy_t policy, xbt_dict_t properties) { - LinkL07Ptr nw_link = new LinkL07(this, xbt_strdup(name), properties); + LinkL07Ptr nw_link = new LinkL07(this, name, properties); xbt_assert(!xbt_lib_get_or_null(link_lib, name, SURF_LINK_LEVEL), "Link '%s' declared several times in the platform file.", name);