]> git.notmuchmail.org Git - notmuch/commit
lib/load_config: deallocate / NULL database on fatal error
authorDavid Bremner <david@tethera.net>
Sat, 23 Oct 2021 13:22:38 +0000 (10:22 -0300)
committerDavid Bremner <david@tethera.net>
Sat, 30 Oct 2021 16:51:50 +0000 (13:51 -0300)
commitfe51c275fcd7107d92b40de511086300ba4060ed
treea8070ebfb3eea9e6779960750463c0bf7d6991fc
parent8f0b84789d4fda0182e073b68b73160c9b94a4b7
lib/load_config: deallocate / NULL database on fatal error

This fixes a potential memory leak, and makes the behaviour of
notmuch_database_load_config (somewhat) consistent with
n_d_{open,create} with config.
lib/open.cc
test/T590-libconfig.sh