From dfb0e60acc7f5b9d1ca00c5d77df7f217e94fecd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Sun, 29 Aug 2021 08:59:32 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=93=E5=AD=98=E6=96=87=E4=BB=B6=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=85=B3=E9=97=AD=E6=97=B6=E4=B9=9F=E6=B8=85=E9=99=A4?= =?UTF-8?q?=E5=86=85=E5=AD=98=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/caches/list_file.go | 2 ++ 1 file changed, 2 insertions(+) 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()