summaryrefslogtreecommitdiffstats
path: root/ospfd
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2021-06-09 15:25:59 +0200
committerGitHub <noreply@github.com>2021-06-09 15:25:59 +0200
commitc20270787cfdb46a0269c01c0543cacb0966cb91 (patch)
tree1bf8af75b30249c19a2ee747c4f0773a4c510df8 /ospfd
parentMerge pull request #8808 from ton31337/feature/tracepoints_for_bgp_dest_lock_... (diff)
parentospfd: fix memory leaks in summarization (diff)
downloadfrr-c20270787cfdb46a0269c01c0543cacb0966cb91.tar.xz
frr-c20270787cfdb46a0269c01c0543cacb0966cb91.zip
Merge pull request #8815 from idryzhov/fix-ospf-aggr
ospfd: fix memory leaks in summarization
Diffstat (limited to 'ospfd')
-rw-r--r--ospfd/ospf_asbr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ospfd/ospf_asbr.c b/ospfd/ospf_asbr.c
index bda00e0c9..2fd195bb6 100644
--- a/ospfd/ospf_asbr.c
+++ b/ospfd/ospf_asbr.c
@@ -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;