forked from acouzens/open5gs
update it
This commit is contained in:
parent
e1f06e5cb0
commit
4b6f9355fe
|
@ -144,15 +144,11 @@ static clbuf_t* clbuf_alloc(c_uint16_t length)
|
|||
pool_alloc_node(&cluster_2048_pool, &cluster);
|
||||
clbuf->size = SIZEOF_CLUSTER_2048;
|
||||
}
|
||||
else if (length <= 8192)
|
||||
else
|
||||
{
|
||||
pool_alloc_node(&cluster_8192_pool, &cluster);
|
||||
clbuf->size = SIZEOF_CLUSTER_8192;
|
||||
}
|
||||
else
|
||||
{
|
||||
d_assert(0, return NULL, "No cluster. length:%d requested", length)
|
||||
}
|
||||
|
||||
d_assert(cluster, pool_free_node(&clbuf_pool, clbuf); return NULL,
|
||||
"No more free cluster. length:%d requested", length);
|
||||
|
|
Loading…
Reference in New Issue