| Index: runtime/bin/gen_snapshot.cc
|
| diff --git a/runtime/bin/gen_snapshot.cc b/runtime/bin/gen_snapshot.cc
|
| index 05b38421b438aeaa4494c11acf4da18bd718f3d1..2c44b1166a76d1bdc6087d0c4671cdb670e6c160 100644
|
| --- a/runtime/bin/gen_snapshot.cc
|
| +++ b/runtime/bin/gen_snapshot.cc
|
| @@ -383,6 +383,7 @@ static void WriteSnapshotFile(const char* filename,
|
| Log::PrintErr("Error: Unable to write snapshot file: %s\n\n", filename);
|
| Dart_ExitScope();
|
| Dart_ShutdownIsolate();
|
| + Dart_Cleanup();
|
| exit(kErrorExitCode);
|
| }
|
| if (!file->WriteFully(buffer, size)) {
|
|
|