diff --git a/contrib/analyze-local-images/main.go b/contrib/analyze-local-images/main.go index 147dc1c5..c0362d2b 100644 --- a/contrib/analyze-local-images/main.go +++ b/contrib/analyze-local-images/main.go @@ -142,6 +142,14 @@ func save(imageName string) (string, error) { if err != nil { return "", errors.New(stderr.String()) } + err = pipe.Close() + if err != nil { + return "", err + } + err = extract.Wait() + if err != nil { + return "", errors.New(stderr.String()) + } return path, nil }