From 75b5a1b1f6f38dcaf7a50421ea93442f223ae320 Mon Sep 17 00:00:00 2001 From: Antonio Murdaca Date: Wed, 16 Mar 2016 19:46:40 +0100 Subject: [PATCH] registry: client: repository: close response body Signed-off-by: Antonio Murdaca --- registry/client/repository.go | 1 + 1 file changed, 1 insertion(+) diff --git a/registry/client/repository.go b/registry/client/repository.go index 830749f1..936a3f1b 100644 --- a/registry/client/repository.go +++ b/registry/client/repository.go @@ -308,6 +308,7 @@ check: if err != nil { return distribution.Descriptor{}, err } + defer resp.Body.Close() switch { case resp.StatusCode >= 200 && resp.StatusCode < 400: