changeset 2f3a286392a6 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=2f3a286392a6
description:
dev: use correct delete operation in SimpleDisk
diffstat:
src/dev/simple_disk.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r d5f9445010da -r 2f3a286392a6 src/dev/simple_disk.cc
--- a/src/dev/simple_disk.cc Thu May 10 18:04:27 2012 -0500
+++ b/src/dev/simple_disk.cc Thu May 10 18:04:27 2012 -0500
@@ -75,7 +75,7 @@
DPRINTF(SimpleDisk, "read block=%#x len=%d\n", (uint64_t)block, count);
DDUMP(SimpleDiskData, data, count);
- delete data;
+ delete [] data;
}
void
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev