Skip to content

Commit

Permalink
fix clang analyze warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed Jan 8, 2025
1 parent a283ee1 commit d75e94f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/mem_pool.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,16 @@ 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);

TEST_ASSERT(!mem_pool_borrow(pool));

err = mem_pool_extend(pool, 1);
TEST_ERR(err);

e = mem_pool_borrow(pool);
TEST_ASSERT(e);

Expand Down

0 comments on commit d75e94f

Please sign in to comment.