Another memleak in the memtester (need [] with the delete)
authorRon Dreslinski <rdreslin@umich.edu>
Thu, 12 Oct 2006 17:45:28 +0000 (13:45 -0400)
committerRon Dreslinski <rdreslin@umich.edu>
Thu, 12 Oct 2006 17:45:28 +0000 (13:45 -0400)
src/cpu/memtest/memtest.cc:
    Another memleak in the memtester

--HG--
extra : convert_revision : f7ab079e90d578fb6b9d1ff238d049fcce55b01b

src/cpu/memtest/memtest.cc

index c44f28f9b14189fe9f90e84ca44f652cf69dcfb4..024cd7e41ed4ccb1718dbb557b7ae45aab7458ea 100644 (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;
         }