From 71bbc98a4a90d4685a7a148d5f9a91624bcc0bbf Mon Sep 17 00:00:00 2001 From: Richard Russon Date: Mon, 13 May 2019 22:54:23 +0100 Subject: [PATCH] test: fix leaks --- test/logging/log_disp_queue.c | 2 ++ test/parse/mutt_parse_multipart.c | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/test/logging/log_disp_queue.c b/test/logging/log_disp_queue.c index cdf7d22b1..c98f1d2f8 100644 --- a/test/logging/log_disp_queue.c +++ b/test/logging/log_disp_queue.c @@ -36,4 +36,6 @@ void test_log_disp_queue(void) { TEST_CHECK(log_disp_queue(0, "apple", 0, NULL, 0, "fmt") != 0); } + + log_queue_empty(); } diff --git a/test/parse/mutt_parse_multipart.c b/test/parse/mutt_parse_multipart.c index 30ff06143..c4103976a 100644 --- a/test/parse/mutt_parse_multipart.c +++ b/test/parse/mutt_parse_multipart.c @@ -27,11 +27,17 @@ #include "address/lib.h" #include "email/lib.h" +int log_disp_null(time_t stamp, const char *file, int line, + const char *function, int level, ...) +{ + return 0; +} + void test_mutt_parse_multipart(void) { // struct Body *mutt_parse_multipart(FILE *fp, const char *boundary, off_t end_off, bool digest); - MuttLogger = log_disp_queue; + MuttLogger = log_disp_null; { TEST_CHECK(!mutt_parse_multipart(NULL, "apple", 0, false)); -- 2.40.0