dev: use correct delete operation in SimpleDisk
authorAli Saidi <Ali.Saidi@ARM.com>
Thu, 10 May 2012 23:04:27 +0000 (18:04 -0500)
committerAli Saidi <Ali.Saidi@ARM.com>
Thu, 10 May 2012 23:04:27 +0000 (18:04 -0500)
src/dev/simple_disk.cc

index c611ec06153308f384ec2fba8fb49e25baaf3a72..26e8239bb561e7d0388ca5a20cae0d0b546eaabd 100644 (file)
@@ -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