notmuch: close tag object
This commit is contained in:
parent
42ce6b41ff
commit
6654c970e6
1 changed files with 1 additions and 0 deletions
|
@ -91,6 +91,7 @@ func (db *DB) ListTags() ([]string, error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
defer tags.Close()
|
||||||
var tag *notmuch.Tag
|
var tag *notmuch.Tag
|
||||||
for tags.Next(&tag) {
|
for tags.Next(&tag) {
|
||||||
result = append(result, tag.Value)
|
result = append(result, tag.Value)
|
||||||
|
|
Loading…
Reference in a new issue