From: Christian Franke Date: Wed, 20 Mar 2013 10:50:09 +0000 (+0000) Subject: ospf6d: fix refcounting in ospf6_asbr_lsa_remove X-Git-Tag: frr-2.0-rc1~1624 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=c78a46c27f6dfdd42fe0800cebabc1e49cb0a4bf;p=mirror%2Ffrr.git ospf6d: fix refcounting in ospf6_asbr_lsa_remove When iterating over a list, also the last node should be unlocked again. Signed-off-by: Christian Franke Signed-off-by: David Lamparter --- diff --git a/ospf6d/ospf6_asbr.c b/ospf6d/ospf6_asbr.c index 3605e3f87d..c414970b8a 100644 --- a/ospf6d/ospf6_asbr.c +++ b/ospf6d/ospf6_asbr.c @@ -297,6 +297,8 @@ ospf6_asbr_lsa_remove (struct ospf6_lsa *lsa) } ospf6_route_remove (route, ospf6->route_table); } + if (route != NULL) + ospf6_route_unlock (route); } void