From 3fb0dc7c29634336e3b62e0389059d1b68eeef16 Mon Sep 17 00:00:00 2001 From: Pietro Cerutti Date: Sat, 18 May 2019 16:32:13 +0000 Subject: [PATCH] Add tests for mutt_addr_free --- test/address/mutt_addr_free.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/address/mutt_addr_free.c b/test/address/mutt_addr_free.c index 9f44fcdf8..d30752278 100644 --- a/test/address/mutt_addr_free.c +++ b/test/address/mutt_addr_free.c @@ -34,4 +34,10 @@ void test_mutt_addr_free(void) mutt_addr_free(NULL); TEST_CHECK_(1, "mutt_addr_free(NULL)"); } + + { + struct Address *a = mutt_addr_new(); + mutt_addr_free(&a); + TEST_CHECK(a == NULL); + } } -- 2.40.0