lib/mu: fix a few leaks
Thanks to valgrind
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
** Copyright (C) 2012-2020 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
||||
** Copyright (C) 2012-2021 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
||||
**
|
||||
** This program is free software; you can redistribute it and/or modify it
|
||||
** under the terms of the GNU General Public License as published by the
|
||||
@ -73,6 +73,7 @@ Mu::mu_msg_file_destroy(MuMsgFile* self)
|
||||
|
||||
g_free(self->_path);
|
||||
g_free(self->_maildir);
|
||||
g_free(self->_sha1);
|
||||
|
||||
g_free(self);
|
||||
}
|
||||
|
||||
@ -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{}));
|
||||
|
||||
Reference in New Issue
Block a user