A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Resolve memory leaks
[simgrid.git]
/
src
/
surf
/
network.cpp
diff --git
a/src/surf/network.cpp
b/src/surf/network.cpp
index
06c517c
..
a158d7f
100644
(file)
--- a/
src/surf/network.cpp
+++ b/
src/surf/network.cpp
@@
-274,7
+274,8
@@
void NetworkCm02Model::initialize()
if (!p_maxminSystem)
p_maxminSystem = lmm_system_new(m_selectiveUpdate);
if (!p_maxminSystem)
p_maxminSystem = lmm_system_new(m_selectiveUpdate);
- routing_model_create(static_cast<ResourcePtr>(createResource("__loopback__",
+ const char* lb_name = "__loopback__";
+ routing_model_create(static_cast<ResourcePtr>(createResource(lb_name,
498000000, NULL, 0.000015, NULL,
SURF_RESOURCE_ON, NULL,
SURF_LINK_FATPIPE, NULL)));
498000000, NULL, 0.000015, NULL,
SURF_RESOURCE_ON, NULL,
SURF_LINK_FATPIPE, NULL)));