Index: tools/generate_dump.cc |
diff --git a/tools/generate_dump.cc b/tools/generate_dump.cc |
index 818d232dfb5de2ba69ad2cada1dfafa6ea76a7b9..5da9f044196073ef0142c875f0000706fb3c238e 100644 |
--- a/tools/generate_dump.cc |
+++ b/tools/generate_dump.cc |
@@ -199,6 +199,7 @@ int GenerateDumpMain(int argc, char* argv[]) { |
MinidumpFileWriter minidump; |
minidump.InitializeFromSnapshot(&process_snapshot); |
if (!minidump.WriteEverything(&file_writer)) { |
+ file_writer.Close(); |
if (unlink(options.dump_path.c_str()) != 0) { |
PLOG(ERROR) << "unlink"; |
} |