Skip to content

Commit

Permalink
fix: close rpmdb
Browse files Browse the repository at this point in the history
Signed-off-by: guoguangwu <[email protected]>
  • Loading branch information
testwill committed Apr 20, 2024
1 parent 6092ac7 commit a2dd2d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions driver/software/rpm.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ func GetRPMs() ([]software.RPM, error) {
if err != nil {
return []software.RPM{}, err
}
defer db.Close()
pkgList, err := db.ListPackages()
if err != nil {
return []software.RPM{}, err
Expand Down

0 comments on commit a2dd2d8

Please sign in to comment.