Merge pull request #8815 from idryzhov/fix-ospf-aggr

ospfd: fix memory leaks in summarization
This commit is contained in:
Donald Sharp 2021-06-09 09:25:59 -04:00 committed by GitHub
commit c20270787c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -508,7 +508,6 @@ static void ospf_external_aggr_delete(struct ospf *ospf, struct route_node *rn)
rn->info = NULL;
route_unlock_node(rn);
route_unlock_node(rn);
}
struct ospf_external_aggr_rt *
@ -1160,6 +1159,7 @@ int ospf_asbr_external_aggregator_unset(struct ospf *ospf,
rn = route_node_lookup(ospf->rt_aggr_tbl, (struct prefix *)p);
if (!rn)
return OSPF_INVALID;
route_unlock_node(rn);
aggr = rn->info;
@ -1217,6 +1217,7 @@ int ospf_asbr_external_rt_advertise(struct ospf *ospf, struct prefix_ipv4 *p)
rn = route_node_lookup(ospf->rt_aggr_tbl, (struct prefix *)p);
if (!rn)
return OSPF_INVALID;
route_unlock_node(rn);
aggr = rn->info;