k3s/pkg/kubelet/kubeletconfig/util/files
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
..
BUILD Refactoring for filesystem mock move 2017-08-28 16:17:15 -07:00
files.go Fix a potential file leak 2017-09-25 20:45:52 -07:00