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:
Ron Dreslinski 2006-10-12 13:45:28 -04:00
parent dd18ffe51d
commit 6ffdc7b4d7

View file

@ -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;
}