diff --git a/watchdog/main.go b/watchdog/main.go index 07010401..35e0dd4a 100644 --- a/watchdog/main.go +++ b/watchdog/main.go @@ -29,6 +29,7 @@ func makeRequestHandler(config *WatchdogConfig) func(http.ResponseWriter, *http. writer, _ := targetCmd.StdinPipe() res, _ := ioutil.ReadAll(r.Body) + defer r.Body.Close() writer.Write(res) writer.Close()