From 4726ff9f4d1f2ad684ed2f9b4daeee02306cf63d Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Thu, 17 Dec 2015 17:05:12 +0100 Subject: [PATCH] tiny cleanup --- src/surf/vm_hl13.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/surf/vm_hl13.cpp b/src/surf/vm_hl13.cpp index 208e24ee53..037749c0fc 100644 --- a/src/surf/vm_hl13.cpp +++ b/src/surf/vm_hl13.cpp @@ -179,8 +179,7 @@ VMHL13::VMHL13(VMModel *model, const char* name, xbt_dict_t props, * from the VM name, we have to make sure that the system does not call the * free callback for the network resource object. The network resource object * is still used by the physical machine. */ - sg_host_t sg_sub_ws = sg_host_by_name_or_create(sub_ws->getName()); - p_netElm = new RoutingEdgeWrapper(sg_host_edge(sg_sub_ws)); + p_netElm = new RoutingEdgeWrapper(sg_host_edge(host_PM)); sg_host_t host = sg_host_by_name_or_create(name); sg_host_edge_set(host, p_netElm); -- 2.20.1