diff options
author | paul <paul> | 2003-06-04 02:28:45 +0000 |
---|---|---|
committer | paul <paul> | 2003-06-04 02:28:45 +0000 |
commit | beb3f600c48332303bc5bdf8aba32a111192d38f (patch) | |
tree | b25a7f95175ac9473f30c26de775bb2e485ddcfc /ospfd/ospf_interface.c | |
parent | 23b58d296f2afb9cbeb22fd11e46ba851ce51daa (diff) | |
download | quagga-merge.zprivs.head.4.tar.bz2 quagga-merge.zprivs.head.4.tar.xz |
From: kamatchi soundaram <kamatchi@tdd.sj.nec.com>merge.zprivs.head.4
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/ospf_interface.c')
-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; |