fix close response missing (#16822)

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-09 16:56:02 +08:00 committed by GitHub
parent 4d80d7d72c
commit 4afd4ae324
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 {