]> git.notmuchmail.org Git - notmuch/commit
lib/config: simplify cleanup in notmuch_database_get_config_list()
authorAnton Khirnov <anton@khirnov.net>
Sun, 27 Jul 2025 14:11:44 +0000 (16:11 +0200)
committerDavid Bremner <david@tethera.net>
Mon, 4 Aug 2025 13:15:38 +0000 (10:15 -0300)
commit2e87a00f3909e7f5ddd3b51230d8b9483efbf380
treef3b90b71d6dddf8c2d1f846788c6aa5772a40285
parentf375ea1add121c428f261473512831a169dfe335
lib/config: simplify cleanup in notmuch_database_get_config_list()

The list destructor is always set when necessary (i.e. if the iterator
is successfully created), so there is never a need to invoke it
explicitly, even on failure.
lib/config.cc