about summary refs log tree commit diff stats
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
parent42ce6b41ff7ff56f89de25e4807ab30c6eef4662 (diff)
downloadaerc-6654c970e6400e3d97344a8c982770a36e6f78ba.tar.gz
notmuch: close tag object
-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)
'>117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173