From d8471c785b18ca26e34b9f7305d92560964181af Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Mon, 31 Oct 2016 22:21:55 +0100 Subject: [PATCH 1/1] plug a memleak --- src/surf/VirtualMachineImpl.cpp | 2 ++ 1 file changed, 2 insertions(+) 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() -- 2.20.1