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
don't free VM's netcard: is not a wrapper anymore but the PM one
[simgrid.git]
/
src
/
surf
/
surf_c_bindings.cpp
diff --git
a/src/surf/surf_c_bindings.cpp
b/src/surf/surf_c_bindings.cpp
index
8ce32d4
..
66dc64d
100644
(file)
--- a/
src/surf/surf_c_bindings.cpp
+++ b/
src/surf/surf_c_bindings.cpp
@@
-382,9
+382,9
@@
void surf_host_set_params(sg_host_t host, vm_params_t params){
get_casted_host(host)->setParams(params);
}
-void surf_vm_destroy(sg_host_t vm){
+void surf_vm_destroy(sg_host_t vm){
// FIXME:DEADCODE
vm->p_cpu = nullptr;
-
delete vm->p_netcard
;
+
vm->p_netcard = nullptr
;
}
void surf_vm_suspend(sg_host_t vm){