Skip to content

Commit

Permalink
fix: close pom.xml (aquasecurity#6507)
Browse files Browse the repository at this point in the history
Signed-off-by: guoguangwu <guoguangwug@gmail.com>
  • Loading branch information
testwill authored and fl0pp5 committed May 6, 2024
1 parent 6cbc081 commit 69dfe4e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/dependency/parser/java/pom/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,7 @@ func (p *parser) openPom(filePath string) (*pom, error) {
if err != nil {
return nil, xerrors.Errorf("file open error (%s): %w", filePath, err)
}
defer f.Close()

content, err := parsePom(f)
if err != nil {
Expand Down

0 comments on commit 69dfe4e

Please sign in to comment.