lib/mu: fix a few leaks

Thanks to valgrind
This commit is contained in:
Dirk-Jan C. Binnema
2021-10-20 23:06:28 +03:00
parent 928fd82f02
commit 428dddd74e
3 changed files with 7 additions and 4 deletions

View File

@ -37,8 +37,12 @@ static void
test_query()
{
allow_warnings();
char* tdir;
tdir = test_mu_common_get_random_tmpdir();
Store store{tdir, std::string{MU_TESTMAILDIR}, {}, {}};
g_free(tdir);
Store store{test_mu_common_get_random_tmpdir(), std::string{MU_TESTMAILDIR}, {}, {}};
auto&& idx{store.indexer()};
g_assert_true(idx.start(Indexer::Config{}));