From e029941bda3d47585461d424b0c519adbfd02e6f Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Thu, 10 May 2012 18:04:27 -0500 Subject: [PATCH] dev: use correct delete operation in SimpleDisk --- src/dev/simple_disk.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2