Skip to content

Commit

Permalink
fix(fs): add missing defered Cleanup() call to post analyzer fs (#7882)
Browse files Browse the repository at this point in the history
  • Loading branch information
jinroh authored Nov 7, 2024
1 parent 6018461 commit ab32297
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/fanal/artifact/local/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ func (a Artifact) Inspect(ctx context.Context) (artifact.Reference, error) {
if err != nil {
return artifact.Reference{}, xerrors.Errorf("failed to prepare filesystem for post analysis: %w", err)
}
defer composite.Cleanup()

err = a.walker.Walk(a.rootPath, a.artifactOption.WalkerOption, func(filePath string, info os.FileInfo, opener analyzer.Opener) error {
dir := a.rootPath
Expand Down

0 comments on commit ab32297

Please sign in to comment.