summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mem/ruby/recorder/CacheRecorder.cc2
-rw-r--r--src/mem/ruby/system/System.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mem/ruby/recorder/CacheRecorder.cc b/src/mem/ruby/recorder/CacheRecorder.cc
index c5593d945..1e029b400 100644
--- a/src/mem/ruby/recorder/CacheRecorder.cc
+++ b/src/mem/ruby/recorder/CacheRecorder.cc
@@ -61,7 +61,7 @@ CacheRecorder::CacheRecorder(uint8_t* uncompressed_trace,
CacheRecorder::~CacheRecorder()
{
if (m_uncompressed_trace != NULL) {
- delete m_uncompressed_trace;
+ delete [] m_uncompressed_trace;
m_uncompressed_trace = NULL;
}
m_seq_map.clear();
diff --git a/src/mem/ruby/system/System.cc b/src/mem/ruby/system/System.cc
index 0e52df2ec..617788b99 100644
--- a/src/mem/ruby/system/System.cc
+++ b/src/mem/ruby/system/System.cc
@@ -331,7 +331,7 @@ RubySystem::unserialize(Checkpoint *cp, const string &section)
memory_trace_size);
m_mem_vec_ptr->populatePages(uncompressed_trace);
- delete uncompressed_trace;
+ delete [] uncompressed_trace;
uncompressed_trace = NULL;
}