cpu: Correctly call parent on switchOut() and takeOverFrom()
[gem5.git] / src / cpu / activity.cc
index 13613cffc0a18de1c36223cc976fae8936f7bb3f..87875c683dfe7b29d833a9683eb9d53eeb9dbe63 100644 (file)
@@ -46,6 +46,11 @@ ActivityRecorder::ActivityRecorder(const string &name, int num_stages,
     std::memset(stageActive, 0, numStages);
 }
 
+ActivityRecorder::~ActivityRecorder()
+{
+    delete[] stageActive;
+}
+
 void
 ActivityRecorder::activity()
 {