diff --git a/internal/caches/list_file.go b/internal/caches/list_file.go index d828e74..8c6c189 100644 --- a/internal/caches/list_file.go +++ b/internal/caches/list_file.go @@ -360,6 +360,8 @@ func (this *FileList) OnRemove(f func(item *Item)) { func (this *FileList) Close() error { this.isClosed = true + this.memoryCache.Destroy() + if this.db != nil { _ = this.existsByHashStmt.Close() _ = this.insertStmt.Close()