mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-17 16:48:43 +00:00
Fixes a minor memory wasting.
This commit is contained in:
parent
8cab377d92
commit
f0160f0e06
@ -119,7 +119,7 @@ lsab_allocz(struct proto_ospf *po, unsigned size)
|
||||
static inline void *
|
||||
lsab_flush(struct proto_ospf *po)
|
||||
{
|
||||
void *r = mb_alloc(po->proto.pool, po->lsab_size);
|
||||
void *r = mb_alloc(po->proto.pool, po->lsab_used);
|
||||
memcpy(r, po->lsab, po->lsab_used);
|
||||
po->lsab_used = 0;
|
||||
return r;
|
||||
|
Loading…
Reference in New Issue
Block a user