]> granicus.if.org Git - neomutt/commit
notmuch: check for long run during db free
authorAustin Ray <austin@austinray.io>
Wed, 14 Nov 2018 02:12:09 +0000 (21:12 -0500)
committerRichard Russon <rich@flatcap.org>
Tue, 4 Dec 2018 13:19:26 +0000 (13:19 +0000)
commit1cdfc0da08e09b1756a7b4d422996e907c4390d0
tree7c2dfc9af78ed49bc70a9b73a8be527f7434fd55
parent198f1cb293f86a2114121d0d3dcbe30b1c06ff3e
notmuch: check for long run during db free

`nm_db_release(...)` should protect against freeing a long run database.
Prior to this commit, it was up to the programmer to ensure that a long
run database was not released.

The commit moves the check into `nm_db_release(...)` and removes the
checks elsewhere to reduce unnecessary, repeated checks.
notmuch/mutt_notmuch.c
notmuch/nm_db.c