diff options
Diffstat (limited to 'proto/ospf/lsalib.c')
-rw-r--r-- | proto/ospf/lsalib.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |