Another memleak in the memtester (need [] with the delete)
src/cpu/memtest/memtest.cc:
Another memleak in the memtester
--HG--
extra : convert_revision : f7ab079e90d578fb6b9d1ff238d049fcce55b01b
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user