Michael Taufen
62fecfb0f4
Fix a potential file leak
...
Previously, if a write or sync error occurred, we would not have called
Close(). This commit refactors ReplaceFile() so that we are sure to call
Close(), and also attempts to delete the temporary file if errors occur.
2017-09-25 20:45:52 -07:00
..
2017-09-13 09:30:01 -07:00
2017-08-11 09:32:39 -07:00
2017-09-16 15:33:18 -07:00
2017-09-01 19:11:19 +08:00
2017-08-25 16:04:53 -05:00
2017-08-12 02:35:57 -07:00
2017-09-06 23:10:59 -04:00
2017-09-12 08:46:12 -07:00
2017-09-16 09:45:29 -07:00
2017-08-11 09:32:39 -07:00
2017-09-06 06:54:30 -07:00
2017-08-11 09:32:39 -07:00
2017-09-07 19:41:24 +02:00
2017-08-16 16:38:28 -07:00
2017-09-14 15:35:12 -07:00
2017-09-13 07:28:36 -07:00
2017-09-25 20:45:52 -07:00
2017-09-14 15:56:22 -04:00
2017-09-15 11:28:35 -04:00
2017-09-05 17:49:30 -04:00
2017-08-11 09:32:39 -07:00
2017-09-03 15:48:31 -07:00
2017-09-15 01:59:56 -07:00
2017-09-15 01:08:08 -07:00
2017-08-11 09:32:39 -07:00
2017-08-31 21:09:17 -07:00
2017-08-11 09:32:39 -07:00
2017-08-18 05:42:07 -07:00
2017-09-05 12:38:57 -07:00
2017-09-25 20:45:52 -07:00
2017-08-11 09:32:39 -07:00
2017-09-15 02:00:03 -07:00
2017-08-16 11:22:37 -07:00
2017-08-16 11:22:37 -07:00