mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-09 20:58:44 +00:00
Merge commit '6c058ae4' into thread-next-iface
This commit is contained in:
commit
90b9e37bc4
@ -185,11 +185,18 @@ lp_flush(linpool *m)
|
|||||||
{
|
{
|
||||||
struct lp_chunk *c;
|
struct lp_chunk *c;
|
||||||
|
|
||||||
/* Move ptr to the first chunk and free all large chunks */
|
/* Move ptr to the first chunk and free all other chunks */
|
||||||
m->current = c = m->first;
|
m->current = c = m->first;
|
||||||
m->ptr = c ? c->data : NULL;
|
m->ptr = c ? c->data : NULL;
|
||||||
m->end = c ? c->data + LP_DATA_SIZE : NULL;
|
m->end = c ? c->data + LP_DATA_SIZE : NULL;
|
||||||
|
|
||||||
|
while (c && c->next)
|
||||||
|
{
|
||||||
|
struct lp_chunk *d = c->next;
|
||||||
|
c->next = d->next;
|
||||||
|
free_page(d);
|
||||||
|
}
|
||||||
|
|
||||||
while (c = m->first_large)
|
while (c = m->first_large)
|
||||||
{
|
{
|
||||||
m->first_large = c->next;
|
m->first_large = c->next;
|
||||||
|
Loading…
Reference in New Issue
Block a user