From 6bf4c45e52078dc51b77ab477d9c0798f470107a Mon Sep 17 00:00:00 2001 From: Derek McGowan Date: Thu, 14 May 2015 10:18:21 -0700 Subject: [PATCH] Add missing defer on Tags Signed-off-by: Derek McGowan (github: dmcgowan) --- docs/client/repository.go | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/client/repository.go b/docs/client/repository.go index 0bd89b114..4055577da 100644 --- a/docs/client/repository.go +++ b/docs/client/repository.go @@ -99,6 +99,7 @@ func (ms *manifests) Tags() ([]string, error) { if err != nil { return nil, err } + defer resp.Body.Close() switch { case resp.StatusCode == http.StatusOK: