mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 14:34:22 +00:00
[ospfd] fix rare leak of struct connected, in an error path.
2006-01-10 Juris Kalnins <juris@mt.lv> * ospf_zebra.c: (ospf_interface_address_delete) fix rare leak of struct connected in an error case.
This commit is contained in:
parent
c42c177de3
commit
98429f6d07
@ -1,3 +1,8 @@
|
|||||||
|
2006-01-10 Juris Kalnins <juris@mt.lv>
|
||||||
|
|
||||||
|
* ospf_zebra.c: (ospf_interface_address_delete) fix rare leak of
|
||||||
|
struct connected in an error case.
|
||||||
|
|
||||||
2006-01-10 Paul Jakma <paul.jakma@sun.com>
|
2006-01-10 Paul Jakma <paul.jakma@sun.com>
|
||||||
|
|
||||||
* ospfd.c: (ospf_network_run) checking to see if router-id
|
* ospfd.c: (ospf_network_run) checking to see if router-id
|
||||||
|
@ -289,7 +289,10 @@ ospf_interface_address_delete (int command, struct zclient *zclient,
|
|||||||
|
|
||||||
rn = route_node_lookup (IF_OIFS (ifp), &p);
|
rn = route_node_lookup (IF_OIFS (ifp), &p);
|
||||||
if (!rn)
|
if (!rn)
|
||||||
|
{
|
||||||
|
connected_free (c);
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
assert (rn->info);
|
assert (rn->info);
|
||||||
oi = rn->info;
|
oi = rn->info;
|
||||||
|
Loading…
Reference in New Issue
Block a user