X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6a7a5e668b9652e14a3e48b318743e9f9a0c720e..d8471c785b18ca26e34b9f7305d92560964181af:/src/surf/VirtualMachineImpl.cpp?ds=sidebyside diff --git a/src/surf/VirtualMachineImpl.cpp b/src/surf/VirtualMachineImpl.cpp index a2ab12e723..8ad7f58438 100644 --- a/src/surf/VirtualMachineImpl.cpp +++ b/src/surf/VirtualMachineImpl.cpp @@ -139,6 +139,8 @@ 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()