about summary refs log tree commit diff stats
path: root/worker
diff options
context:
space:
mode:
authorReto Brunner <reto@labrat.space>2020-09-24 21:24:44 +0200
committerReto Brunner <reto@labrat.space>2020-09-24 21:24:44 +0200
commit6654c970e6400e3d97344a8c982770a36e6f78ba (patch)
tree40665dcb09a21bbeb854503affa5fc0f350a8e92 /worker
parent42ce6b41ff7ff56f89de25e4807ab30c6eef4662 (diff)
downloadaerc-6654c970e6400e3d97344a8c982770a36e6f78ba.tar.gz
notmuch: close tag object
Diffstat (limited to 'worker')
-rw-r--r--worker/notmuch/lib/database.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/worker/notmuch/lib/database.go b/worker/notmuch/lib/database.go
index cdedcb9..ea6af93 100644
--- a/worker/notmuch/lib/database.go
+++ b/worker/notmuch/lib/database.go
@@ -91,6 +91,7 @@ func (db *DB) ListTags() ([]string, error) {
 		if err != nil {
 			return err
 		}
+		defer tags.Close()
 		var tag *notmuch.Tag
 		for tags.Next(&tag) {
 			result = append(result, tag.Value)