From d75e94ff6094a80bed07131cb1ae2420b466a1cf Mon Sep 17 00:00:00 2001 From: Sebastian Reimers Date: Wed, 8 Jan 2025 09:29:15 +0100 Subject: [PATCH] fix clang analyze warning --- test/mem_pool.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/mem_pool.c b/test/mem_pool.c index 85a56169e..8b6ea40d9 100644 --- a/test/mem_pool.c +++ b/test/mem_pool.c @@ -44,6 +44,8 @@ int test_mem_pool(void) TEST_ASSERT(!mem_pool_borrow(pool)); e = mem_pool_release(pool, e); + TEST_ASSERT(!e); + e = mem_pool_borrow(pool); TEST_ASSERT(e); @@ -51,6 +53,7 @@ int test_mem_pool(void) err = mem_pool_extend(pool, 1); TEST_ERR(err); + e = mem_pool_borrow(pool); TEST_ASSERT(e);