mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 19:39:28 +00:00
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));
This commit is contained in:
parent
ec1ca63c18
commit
cfc959b8f5
@ -643,6 +643,7 @@ ospf_if_delete_hook (struct interface *ifp)
|
|||||||
#endif /* HAVE_OPAQUE_LSA */
|
#endif /* HAVE_OPAQUE_LSA */
|
||||||
route_table_finish (IF_OIFS (ifp));
|
route_table_finish (IF_OIFS (ifp));
|
||||||
route_table_finish (IF_OIFS_PARAMS (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);
|
XFREE (MTYPE_OSPF_IF_INFO, ifp->info);
|
||||||
ifp->info = NULL;
|
ifp->info = NULL;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user