mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-25 22:30:52 +00:00
Merge pull request #1323 from donaldsharp/ospf_list_delete
ospfd: Fix ships in the night PR's and list_delete
This commit is contained in:
commit
02caabb5bb
@ -634,7 +634,7 @@ static void ospf_finish_final(struct ospf *ospf)
|
|||||||
/* Reset interface. */
|
/* Reset interface. */
|
||||||
for (ALL_LIST_ELEMENTS(ospf->oiflist, node, nnode, oi))
|
for (ALL_LIST_ELEMENTS(ospf->oiflist, node, nnode, oi))
|
||||||
ospf_if_free(oi);
|
ospf_if_free(oi);
|
||||||
list_delete(ospf->oiflist);
|
list_delete_and_null(&ospf->oiflist);
|
||||||
|
|
||||||
/* De-Register VRF */
|
/* De-Register VRF */
|
||||||
ospf_zebra_vrf_deregister(ospf);
|
ospf_zebra_vrf_deregister(ospf);
|
||||||
@ -737,7 +737,6 @@ static void ospf_finish_final(struct ospf *ospf)
|
|||||||
|
|
||||||
list_delete_and_null(&ospf->areas);
|
list_delete_and_null(&ospf->areas);
|
||||||
list_delete_and_null(&ospf->oi_write_q);
|
list_delete_and_null(&ospf->oi_write_q);
|
||||||
list_delete_and_null(&ospf->oiflist);
|
|
||||||
|
|
||||||
for (i = ZEBRA_ROUTE_SYSTEM; i <= ZEBRA_ROUTE_MAX; i++) {
|
for (i = ZEBRA_ROUTE_SYSTEM; i <= ZEBRA_ROUTE_MAX; i++) {
|
||||||
struct list *ext_list;
|
struct list *ext_list;
|
||||||
@ -769,8 +768,6 @@ static void ospf_finish_final(struct ospf *ospf)
|
|||||||
if (!CHECK_FLAG(om->options, OSPF_MASTER_SHUTDOWN))
|
if (!CHECK_FLAG(om->options, OSPF_MASTER_SHUTDOWN))
|
||||||
instance = ospf->instance;
|
instance = ospf->instance;
|
||||||
|
|
||||||
list_delete(ospf->oi_write_q);
|
|
||||||
|
|
||||||
ospf_delete(ospf);
|
ospf_delete(ospf);
|
||||||
|
|
||||||
if (ospf->name) {
|
if (ospf->name) {
|
||||||
|
Loading…
Reference in New Issue
Block a user