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
plug a memleak
[simgrid.git]
/
src
/
surf
/
host_interface.cpp
diff --git
a/src/surf/host_interface.cpp
b/src/surf/host_interface.cpp
index
4585220
..
203bede
100644
(file)
--- a/
src/surf/host_interface.cpp
+++ b/
src/surf/host_interface.cpp
@@
-118,6
+118,10
@@
Host::Host(simgrid::surf::Model *model, const char *name, xbt_dict_t props, lmm_
Host::~Host()
{
xbt_assert(currentlyDestroying_, "Don't delete Hosts directly. Call destroy() instead.");
Host::~Host()
{
xbt_assert(currentlyDestroying_, "Don't delete Hosts directly. Call destroy() instead.");
+ delete p_cpu;
+ // FIXME: VM plays strange games, leading to segfaults if I do the expected thing of next line
+ // delete p_netElm;
+ delete p_storage;
}
/** @brief Fire the require callbacks and destroy the object
*
}
/** @brief Fire the require callbacks and destroy the object
*