diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2010-12-23 10:25:22 +0100 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2010-12-23 10:25:22 +0100 |
commit | f0160f0e06be883528e5e29edfd509efa14d0c78 (patch) | |
tree | 6677d77b88aec899eabf9f080d5cdfd43f80734b /proto/ospf | |
parent | 8cab377d92b62c028ee7aab49049b7cb6cd53ab9 (diff) |
Fixes a minor memory wasting.
Diffstat (limited to 'proto/ospf')
-rw-r--r-- | proto/ospf/topology.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/ospf/topology.c b/proto/ospf/topology.c index e604bf87..bb608498 100644 --- a/proto/ospf/topology.c +++ b/proto/ospf/topology.c @@ -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; |