Skip to content

Commit

Permalink
Add assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
matyhtf committed Mar 15, 2022
1 parent 879d441 commit a8c5ed3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/memory/fixed_pool.cc
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ void *FixedPool::alloc(uint32_t size) {
FixedPoolSlice *slice = impl->head;
if (slice->lock) {
swoole_set_last_error(SW_ERROR_MALLOC_FAIL);
assert(get_number_of_spare_slice() == 0);
return nullptr;
}

Expand Down

0 comments on commit a8c5ed3

Please sign in to comment.