From 5fbfa95aaef3ca01077411e2497c507ae542083c Mon Sep 17 00:00:00 2001 From: Frederic Suter Date: Tue, 14 Jan 2020 11:16:34 +0100 Subject: [PATCH] plug leak pimpl_->storage was directly accessed before without simcall and adding one generate copies and leaks. Storage must die anyway ... --- src/s4u/s4u_Host.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/s4u/s4u_Host.cpp b/src/s4u/s4u_Host.cpp index 519cb965ed..038bb3e6c8 100644 --- a/src/s4u/s4u_Host.cpp +++ b/src/s4u/s4u_Host.cpp @@ -308,7 +308,7 @@ std::vector Host::get_attached_storages() const std::unordered_map const& Host::get_mounted_storages() { if (mounts_ == nullptr) - mounts_ = kernel::actor::simcall([this] { return this->pimpl_->get_mounted_storages(); }); + mounts_ = pimpl_->get_mounted_storages(); return *mounts_; } -- 2.20.1