X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f9de85055aad497b71cb6a2484096228acfa0432..f3da0e53f20a27db79c661314020550b7b9d0bcd:/src/surf/cpu_interface.cpp diff --git a/src/surf/cpu_interface.cpp b/src/surf/cpu_interface.cpp index a8b793d17f..7fffcb5ab7 100644 --- a/src/surf/cpu_interface.cpp +++ b/src/surf/cpu_interface.cpp @@ -75,7 +75,11 @@ Cpu::Cpu(kernel::resource::Model* model, simgrid::s4u::Host* host, kernel::lmm:: } } -Cpu::~Cpu() = default; +Cpu::~Cpu() +{ + if (get_model() == surf_cpu_model_pm) + speed_per_pstate_.clear(); +} int Cpu::get_pstates_count() {