fix close response missing (#16820)

It has to close the http response on deleting manifest

Signed-off-by: Wang Yan <wangyan@vmware.com>
This commit is contained in:
Wang Yan 2022-05-07 13:03:15 +08:00 committed by GitHub
parent 2dceffe457
commit c333218ba2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -379,6 +379,7 @@ func (a *adapter) DeleteManifest(repository, reference string) error {
if err != nil {
return err
}
defer resp.Body.Close()
body, err := ioutil.ReadAll(resp.Body)
if err != nil {