From: Ali Saidi Date: Thu, 10 May 2012 23:04:27 +0000 (-0500) Subject: dev: use correct delete operation in SimpleDisk X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e029941bda3d47585461d424b0c519adbfd02e6f;p=gem5.git dev: use correct delete operation in SimpleDisk --- diff --git a/src/dev/simple_disk.cc b/src/dev/simple_disk.cc index c611ec061..26e8239bb 100644 --- a/src/dev/simple_disk.cc +++ b/src/dev/simple_disk.cc @@ -75,7 +75,7 @@ SimpleDisk::read(Addr addr, baddr_t block, int count) const DPRINTF(SimpleDisk, "read block=%#x len=%d\n", (uint64_t)block, count); DDUMP(SimpleDiskData, data, count); - delete data; + delete [] data; } void