From: Ron Dreslinski Date: Thu, 12 Oct 2006 17:45:28 +0000 (-0400) Subject: Another memleak in the memtester (need [] with the delete) X-Git-Tag: m5_2.0_beta2~73^2~28 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6ffdc7b4d7be6d27be3a1ae83262787565063b36;p=gem5.git Another memleak in the memtester (need [] with the delete) src/cpu/memtest/memtest.cc: Another memleak in the memtester --HG-- extra : convert_revision : f7ab079e90d578fb6b9d1ff238d049fcce55b01b --- 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; }