diff --git a/sys/oom_unix_test.go b/sys/oom_unix_test.go index 2e399b52f..f849c64ec 100644 --- a/sys/oom_unix_test.go +++ b/sys/oom_unix_test.go @@ -72,6 +72,8 @@ func adjustOom(adjustment int) (int, error) { return 0, err } + defer cmd.Process.Kill() + pid, err := waitForPid(cmd.Process) if err != nil { return 0, err