From 035f6acbfec1e06a207217ae81153b67ced995f3 Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Tue, 1 Jun 2004 13:12:10 +0000 Subject: Patch from Andreas Steinmetz --- proto/ospf/lsalib.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'proto/ospf/lsalib.c') diff --git a/proto/ospf/lsalib.c b/proto/ospf/lsalib.c index c12c5bd..1e97709 100644 --- a/proto/ospf/lsalib.c +++ b/proto/ospf/lsalib.c @@ -15,6 +15,8 @@ flush_lsa(struct top_hash_entry *en, struct ospf_area *oa) OSPF_TRACE(D_EVENTS, "Going to remove node Type: %u, Id: %I, Rt: %I, Age: %u", en->lsa.type, en->lsa.id, en->lsa.rt, en->lsa.age); s_rem_node(SNODE en); + if(en->lsa_body!=NULL) mb_free(en->lsa_body); + en->lsa_body=NULL; ospf_hash_delete(oa->gr,en); } -- cgit v1.2.3