fix(tlsf): Fix while loop in walker

Exit the loop before getting the next block if the
pool_walker returns false.
This commit is contained in:
Guillaume Souchere
2024-03-19 13:51:43 +01:00
parent e282f0be5a
commit 817349ad39

3
tlsf.c
View File

@@ -773,8 +773,11 @@ void tlsf_walk_pool(pool_t pool, tlsf_walker walker, void* user)
block_size(block),
!block_is_free(block),
user);
if (ret_val == true) {
block = block_next(block);
}
}
}
size_t tlsf_block_size(void* ptr)