Skip to content

Commit e12d039

Browse files
Merge pull request operator-framework#506 from gallettilance/db-lock-fix
Bug 1894278: (fix) close connection to db
2 parents fc70c12 + 831f746 commit e12d039

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/sqlite/query.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,6 +1151,8 @@ func (s *SQLQuerier) GetBundlePathIfExists(ctx context.Context, bundleName strin
11511151
if err != nil {
11521152
return
11531153
}
1154+
defer rows.Close()
1155+
11541156
if !rows.Next() {
11551157
// no bundlepath set
11561158
err = registry.ErrBundleImageNotInDatabase

0 commit comments

Comments
 (0)