summaryrefslogtreecommitdiff
path: root/src/cpu/memtest
diff options
context:
space:
mode:
authorRon Dreslinski <rdreslin@umich.edu>2007-03-12 13:15:32 -0500
committerRon Dreslinski <rdreslin@umich.edu>2007-03-12 13:15:32 -0500
commit6415c47a5b196beb16ee56c8cb772dd3fd53b687 (patch)
treec7a6619dee50bf7885b5b382eca34954698490b8 /src/cpu/memtest
parent1aef5c06a3702d7722dcd38e342eae950839cecb (diff)
downloadgem5-6415c47a5b196beb16ee56c8cb772dd3fd53b687.tar.xz
Fix some of the memory leaks related to writebacks
src/cpu/memtest/memtest.cc: Add the [] to a delete to make it work correctly src/mem/cache/cache_impl.hh: Fix one of the memory leaks --HG-- extra : convert_revision : 64c7465c68a084efe38a62419205518b24d852a7
Diffstat (limited to 'src/cpu/memtest')
-rw-r--r--src/cpu/memtest/memtest.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpu/memtest/memtest.cc b/src/cpu/memtest/memtest.cc
index 8b3e9a11e..607cf1066 100644
--- a/src/cpu/memtest/memtest.cc
+++ b/src/cpu/memtest/memtest.cc
@@ -369,7 +369,7 @@ MemTest::tick()
//This means we assume CPU does write forwarding to reads that alias something
//in the cpu store buffer.
if (outstandingAddrs.find(paddr) != outstandingAddrs.end()) {
- delete result;
+ delete [] result;
delete req;
return;
}