Skip to content

Commit 100abbc

Browse files
Benjamin Bergbluca
authored andcommitted
oom: Cleanup of information dump code after kill
This is a follow up to 29f4185 ("oomd: Dump top offenders after a kill action") to clean up the code a bit for review comments that happened after the code had been merged already.
1 parent 8eb0c79 commit 100abbc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/oom/oomd-util.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ static int dump_kill_candidates(OomdCGroupContext **sorted, int n, int dump_unti
227227

228228
f = open_memstream_unlocked(&dump, &size);
229229
if (!f)
230-
return -errno;;
230+
return -errno;
231231

232232
fprintf(f, "Considered %d cgroups for killing, top candidates were:\n", n);
233233
for (int i = 0; i < dump_until; i++)
@@ -237,8 +237,6 @@ static int dump_kill_candidates(OomdCGroupContext **sorted, int n, int dump_unti
237237
if (r < 0)
238238
return r;
239239

240-
f = safe_fclose(f);
241-
242240
return log_dump(LOG_INFO, dump);
243241
}
244242

0 commit comments

Comments
 (0)