notmuch: close tag object

This commit is contained in:
Reto Brunner 2020-09-24 21:24:44 +02:00
parent 42ce6b41ff
commit 6654c970e6
1 changed files with 1 additions and 0 deletions

View File

@ -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)