Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
don't free VM's netcard: is not a wrapper anymore but the PM one
authorMartin Quinson <martin.quinson@loria.fr>
Fri, 8 Jan 2016 21:12:51 +0000 (22:12 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Fri, 8 Jan 2016 21:12:51 +0000 (22:12 +0100)
src/surf/surf_c_bindings.cpp

index 8ce32d4..66dc64d 100644 (file)
@@ -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){