diff --git a/cmd/dhcp4/dhcp4.go b/cmd/dhcp4/dhcp4.go index bbe890d..4ae4605 100644 --- a/cmd/dhcp4/dhcp4.go +++ b/cmd/dhcp4/dhcp4.go @@ -60,6 +60,7 @@ func healthy() error { if err != nil { return err } + defer resp.Body.Close() if got, want := resp.StatusCode, http.StatusOK; got != want { b, _ := ioutil.ReadAll(resp.Body) return fmt.Errorf("%v: got HTTP %v (%s), want HTTP status %v",