]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospf6d: fix refcounting in ospf6_asbr_lsa_remove
authorChristian Franke <chris@opensourcerouting.org>
Wed, 20 Mar 2013 10:50:09 +0000 (10:50 +0000)
committerDavid Lamparter <equinox@opensourcerouting.org>
Fri, 21 Mar 2014 05:28:48 +0000 (06:28 +0100)
When iterating over a list, also the last node should be unlocked again.

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
ospf6d/ospf6_asbr.c

index 3605e3f87d47ba3c663bebefa647ef43c6e32c2b..c414970b8a102a804c40e8b2c71cc1911fcd473d 100644 (file)
@@ -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