]> git.notmuchmail.org Git - notmuch/commit
lib: write talloc report in notmuch_database_destroy
authorDavid Bremner <david@tethera.net>
Sat, 19 Jun 2021 00:59:43 +0000 (21:59 -0300)
committerDavid Bremner <david@tethera.net>
Fri, 25 Jun 2021 12:20:37 +0000 (09:20 -0300)
commitea301102abc55404b8b447cd50998429bfbbf9fd
tree517750c0a0769c9ea3c435d90eedd05e05b46d60
parent2c96956b3b5d60ae25885f4fa06cbc98e567d263
lib: write talloc report in notmuch_database_destroy

Since most memory allocation is (ultimately) in the talloc context
defined by a notmuch_database_t pointer, this gives a more complete
view of memory still allocated at program shutdown.

We also change the talloc report in notmuch.c to mode "a" to avoid
clobbering the newly reported log.
lib/database.cc
notmuch.c