Skip to content

Commit ab32297

Browse files
authored
fix(fs): add missing defered Cleanup() call to post analyzer fs (#7882)
1 parent 6018461 commit ab32297

File tree

1 file changed

+1
-0
lines changed
  • pkg/fanal/artifact/local

1 file changed

+1
-0
lines changed

pkg/fanal/artifact/local/fs.go

+1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ func (a Artifact) Inspect(ctx context.Context) (artifact.Reference, error) {
8282
if err != nil {
8383
return artifact.Reference{}, xerrors.Errorf("failed to prepare filesystem for post analysis: %w", err)
8484
}
85+
defer composite.Cleanup()
8586

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

0 commit comments

Comments
 (0)