Commit 04575bca authored by Wayne Davison's avatar Wayne Davison

Missed one void-pointer-arithmetic case.

parent 71b291d7
......@@ -227,7 +227,7 @@ pool_free(alloc_pool_t p, size_t len, void *addr)
for (prev = NULL, cur = pool->free; cur; prev = cur, cur = cur->next)
{
if (addr >= cur->start
&& addr < cur->start + pool->size)
&& addr < PTR_ADD(cur->start, pool->size))
break;
}
if (!cur)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment