diff --git a/watchdog/main.go b/watchdog/main.go
index 0701040194cd77da3a69b107ba0bfe9f18ee8d20..35e0dd4a5df8a3bd4b86982ace7cace5f3ac71bf 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()