|
@@ -1230,7 +1230,7 @@ func setupOOMScoreAdj(score int) error {
|
|
|
if err != nil {
|
|
|
return err
|
|
|
}
|
|
|
-
|
|
|
+ defer f.Close()
|
|
|
stringScore := strconv.Itoa(score)
|
|
|
_, err = f.WriteString(stringScore)
|
|
|
if os.IsPermission(err) {
|
|
@@ -1242,7 +1242,7 @@ func setupOOMScoreAdj(score int) error {
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
- f.Close()
|
|
|
+
|
|
|
return err
|
|
|
}
|
|
|
|