Close gzip reader when done.

Signed-off-by: Haoming Zhang <feicun1006@gmail.com>
pull/8510/head
Haoming Zhang 5 years ago committed by GitHub
parent d481bc6cf3
commit b6bbf34097
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -68,6 +68,7 @@ func decodeRelease(data string) (*rspb.Release, error) {
if err != nil { if err != nil {
return nil, err return nil, err
} }
defer r.Close()
b2, err := ioutil.ReadAll(r) b2, err := ioutil.ReadAll(r)
if err != nil { if err != nil {
return nil, err return nil, err

Loading…
Cancel
Save