Index: runtime/bin/main.cc |
diff --git a/runtime/bin/main.cc b/runtime/bin/main.cc |
index 0edd37e0209326f8eba577a6a1ed2d1ab737fc0b..072b0534051cf26bac86975c489f8584e54eeb6b 100644 |
--- a/runtime/bin/main.cc |
+++ b/runtime/bin/main.cc |
@@ -1111,7 +1111,7 @@ static void ReadSnapshotFile(const char* snapshot_directory, |
} |
DartUtils::CloseFile(file); |
if (concat != NULL) { |
- delete concat; |
+ delete[] concat; |
} |
} |
@@ -1140,7 +1140,7 @@ static void ReadExecutableSnapshotFile(const char* snapshot_directory, |
Platform::Exit(kErrorExitCode); |
} |
if (concat != NULL) { |
- delete concat; |
+ delete[] concat; |
} |
} |