Skip to content

Commit

Permalink
fix: close rpmdb (#3798)
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill authored Apr 19, 2024
1 parent e105998 commit 6459c85
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions providers/os/resources/packages/rpm_packages.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ func (rpm *RpmPkgManager) staticList() ([]Package, error) {
if err != nil {
return nil, err
}
defer db.Close()
pkgList, err := db.ListPackages()
if err != nil {
return nil, err
Expand Down

0 comments on commit 6459c85

Please sign in to comment.