Skip to content

Commit

Permalink
fix: close testfile (#6830)
Browse files Browse the repository at this point in the history
Signed-off-by: guoguangwu <[email protected]>
  • Loading branch information
testwill authored Jun 1, 2024
1 parent 1c49ae9 commit aa0c413
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/fanal/test/integration/docker/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ func (d Docker) ReplicateImage(ctx context.Context, imageRef, imagePath string,
if err != nil {
return err
}
defer testfile.Close()

// load image into docker engine
resp, err := d.cli.ImageLoad(ctx, testfile, true)
Expand Down

0 comments on commit aa0c413

Please sign in to comment.