Skip to content

Commit

Permalink
close read which is left open
Browse files Browse the repository at this point in the history
  • Loading branch information
breadchris committed Dec 21, 2021
1 parent 7a160ba commit 71adc6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tools/log4shell/constants/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
//
package constants

const Version = "1.4.1"
const Version = "1.4.2"
2 changes: 2 additions & 0 deletions tools/log4shell/scan/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ func (s *Log4jDirectoryScanner) scanArchiveFile(
Msg("unable to open class file")
return
}
defer reader.Close()

return s.processArchiveFile(reader, path, file.Name)
}

Expand Down

0 comments on commit 71adc6a

Please sign in to comment.