From: Ondrej Zajicek Date: Thu, 23 Dec 2010 09:25:22 +0000 (+0100) Subject: Fixes a minor memory wasting. X-Git-Tag: v1.3.0~22 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f0160f0e06be883528e5e29edfd509efa14d0c78;p=thirdparty%2Fbird.git Fixes a minor memory wasting. --- diff --git a/proto/ospf/topology.c b/proto/ospf/topology.c index e604bf87a..bb6084982 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;