| Index: base/files/important_file_writer.cc
|
| diff --git a/base/files/important_file_writer.cc b/base/files/important_file_writer.cc
|
| index cc0a616c5be7e5e09e5235a9f658de6c3e70d740..b46846277b0bbde35d6196b39a6f16a33045b560 100644
|
| --- a/base/files/important_file_writer.cc
|
| +++ b/base/files/important_file_writer.cc
|
| @@ -103,6 +103,7 @@ bool ImportantFileWriter::WriteFileAtomically(const FilePath& path,
|
| File tmp_file(tmp_file_path, File::FLAG_OPEN | File::FLAG_WRITE);
|
| if (!tmp_file.IsValid()) {
|
| LogFailure(path, FAILED_OPENING, "could not open temporary file");
|
| + DeleteFile(tmp_file_path, false);
|
| return false;
|
| }
|
|
|
|
|