Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
don't let the impl mess up with the fields of the interface
authorMartin Quinson <martin.quinson@loria.fr>
Mon, 21 Nov 2016 07:05:08 +0000 (08:05 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Mon, 21 Nov 2016 07:05:08 +0000 (08:05 +0100)
src/plugins/vm/VirtualMachineImpl.cpp
src/plugins/vm/s4u_VirtualMachine.cpp

index b3042e7..931e00c 100644 (file)
@@ -142,8 +142,6 @@ VirtualMachineImpl::~VirtualMachineImpl()
   /* Free the cpu_action of the VM. */
   XBT_ATTRIB_UNUSED int ret = action_->unref();
   xbt_assert(ret == 1, "Bug: some resource still remains");
-
-  delete piface_->pimpl_cpu;
 }
 
 e_surf_vm_state_t VirtualMachineImpl::getState()
index 13357ef..f1c99cd 100644 (file)
@@ -57,7 +57,6 @@ VirtualMachine::~VirtualMachine()
   extension_set<simgrid::simix::Host>(nullptr);
 
   /* Don't free these things twice: they are the ones of my physical host */
-  pimpl_cpu     = nullptr;
   pimpl_netcard = nullptr;
 }