X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d0e24e71be9100371207e703e25cab7d612f521c..ccc1670e4bf36086f1f524b5ef004d5210415488:/src/surf/cpu_cas01.cpp diff --git a/src/surf/cpu_cas01.cpp b/src/surf/cpu_cas01.cpp index 0fe79819c2..9f1a3a2c42 100644 --- a/src/surf/cpu_cas01.cpp +++ b/src/surf/cpu_cas01.cpp @@ -181,7 +181,9 @@ CpuCas01::CpuCas01(CpuCas01Model *model, const char *name, xbt_dynar_t speedPeak p_stateEvent = tmgr_history_add_trace(history, stateTrace, 0.0, 0, this); } -CpuCas01::~CpuCas01(){ +CpuCas01::~CpuCas01() +{ + this->die(); if (getModel() == surf_cpu_model_pm) xbt_dynar_free(&p_speedPeakList); }