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:
parent
dd18ffe51d
commit
6ffdc7b4d7
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue