summaryrefslogtreecommitdiff
path: root/src/cpu
diff options
context:
space:
mode:
authorRon Dreslinski <rdreslin@umich.edu>2006-10-12 13:45:28 -0400
committerRon Dreslinski <rdreslin@umich.edu>2006-10-12 13:45:28 -0400
commit6ffdc7b4d7be6d27be3a1ae83262787565063b36 (patch)
treed28a3069deb3a5ab5c27ec19266d03f2119f7c75 /src/cpu
parentdd18ffe51d7dbef59804e7af3384fe0cc28447a5 (diff)
downloadgem5-6ffdc7b4d7be6d27be3a1ae83262787565063b36.tar.xz
Another memleak in the memtester (need [] with the delete)
src/cpu/memtest/memtest.cc: Another memleak in the memtester --HG-- extra : convert_revision : f7ab079e90d578fb6b9d1ff238d049fcce55b01b
Diffstat (limited to 'src/cpu')
-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 c44f28f9b..024cd7e41 100644
--- a/src/cpu/memtest/memtest.cc
+++ b/src/cpu/memtest/memtest.cc
@@ -400,7 +400,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;
}