Index: sandbox/linux/suid/process_util_linux.c |
diff --git a/sandbox/linux/suid/process_util_linux.c b/sandbox/linux/suid/process_util_linux.c |
index 40949bd6ac50662452dcb2842514a47392d63adf..d28d5766c348590a72d602618919fa8fb65a15e8 100644 |
--- a/sandbox/linux/suid/process_util_linux.c |
+++ b/sandbox/linux/suid/process_util_linux.c |
@@ -59,6 +59,7 @@ bool AdjustOOMScore(pid_t process, int score) { |
fd = openat(dirfd, "oom_adj", O_WRONLY); |
if (fd < 0) { |
// Nope, that doesn't work either. |
+ close(dirfd); |
return false; |
} else { |
// If we're using the old oom_adj file, the allowed range is now |