Skip to content

Commit

Permalink
Closing store
Browse files Browse the repository at this point in the history
  • Loading branch information
npapapietro committed Jan 28, 2025
1 parent eb1f688 commit 872f9f2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/vul/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ func (s *imageScanner) Init(name, version string) {
func (s *imageScanner) Stop() {
s.mx.RLock()
defer s.mx.RUnlock()

if s.store != nil {
s.store.Close()
s.store = nil
}
}

func (s *imageScanner) Score(ii ...string) string {
Expand Down

0 comments on commit 872f9f2

Please sign in to comment.