notmuch: close tag object
This commit is contained in:
parent
42ce6b41ff
commit
6654c970e6
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue