lib/config: move g_key_File_get_string before continue
authorDavid Bremner <david@tethera.net>
Sun, 9 Jan 2022 14:38:04 +0000 (10:38 -0400)
committerDavid Bremner <david@tethera.net>
Sun, 23 Jan 2022 01:14:29 +0000 (21:14 -0400)
commitdf7c5acd759f22fcb537490f62b85d39aa71d677
tree0ffaec1d342f1440bbdbcb1debce1d6ac9c17cb0
parent8dab460a082633903a0cf50938378ec12794819e
lib/config: move g_key_File_get_string before continue

In [1] Austin Ray reported some memory leaks in
notmuch_database_open. One of those leaks is caused by jumping to the
next key without freeing val. This change avoids that leak.

[1]: id:20220105224538.m36lnjn7rf3ieonc@athena
lib/config.cc