projects
/
gem5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cpu: Correctly call parent on switchOut() and takeOverFrom()
[gem5.git]
/
src
/
cpu
/
activity.cc
diff --git
a/src/cpu/activity.cc
b/src/cpu/activity.cc
index 13613cffc0a18de1c36223cc976fae8936f7bb3f..87875c683dfe7b29d833a9683eb9d53eeb9dbe63 100644
(file)
--- a/
src/cpu/activity.cc
+++ b/
src/cpu/activity.cc
@@
-46,6
+46,11
@@
ActivityRecorder::ActivityRecorder(const string &name, int num_stages,
std::memset(stageActive, 0, numStages);
}
+ActivityRecorder::~ActivityRecorder()
+{
+ delete[] stageActive;
+}
+
void
ActivityRecorder::activity()
{