diff options
author | paul <paul> | 2003-06-04 02:28:45 +0000 |
---|---|---|
committer | paul <paul> | 2003-06-04 02:28:45 +0000 |
commit | cfc959b8f5f7ea1185fb3de2e4064704d62336f0 (patch) | |
tree | c6fec4531d632cb516a243e425a61cc61a92e81a /ospfd | |
parent | ec1ca63c188c9dc2518b0f78033e623105ac4f25 (diff) |
From: kamatchi soundaram <kamatchi@tdd.sj.nec.com>
Subject: [zebra 19263] Another memory leak!! is zebra OSPF
This memory leak gets into picture whenever any interface goes down.
Problem found and desctription: Whenever the interface goes down, the
"def_params" (member of ospf_if_info) structure memory is not freed.
Fix made: added the following line to free the "def_params" memory of
ospf_if_info before calling the "XFREE(MTYPE_OSPF_IF_INFO, ifp->info);"
The added line is:
ospf_del_if_params ((struct ospf_if_params *) IF_DEF_PARAMS (ifp));
Diffstat (limited to 'ospfd')
-rw-r--r-- | ospfd/ospf_interface.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ospfd/ospf_interface.c b/ospfd/ospf_interface.c index 83abf553..08bc7fbe 100644 --- a/ospfd/ospf_interface.c +++ b/ospfd/ospf_interface.c @@ -643,6 +643,7 @@ ospf_if_delete_hook (struct interface *ifp) #endif /* HAVE_OPAQUE_LSA */ route_table_finish (IF_OIFS (ifp)); route_table_finish (IF_OIFS_PARAMS (ifp)); + ospf_del_if_params ((struct ospf_if_params *) IF_DEF_PARAMS (ifp)); XFREE (MTYPE_OSPF_IF_INFO, ifp->info); ifp->info = NULL; |