From fddeb1c8d5816edcf9b6503a5e69af1bd55a7383 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) --- registry/client/repository.go | 1 + 1 file changed, 1 insertion(+) diff --git a/registry/client/repository.go b/registry/client/repository.go index 0bd89b11..4055577d 100644 --- a/registry/client/repository.go +++ b/registry/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: