From f0160f0e06be883528e5e29edfd509efa14d0c78 Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Thu, 23 Dec 2010 10:25:22 +0100 Subject: Fixes a minor memory wasting. --- proto/ospf/topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'proto/ospf') 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; -- cgit v1.2.3