network: nexthop - use TAKE_PTR

This commit is contained in:
Susant Sahani
2021-01-15 18:55:17 +01:00
parent f1c86dd9ab
commit fb7a534f7f
+1 -2
View File
@@ -183,8 +183,7 @@ static int nexthop_add_internal(Link *link, Set **nexthops, NextHop *in, NextHop
if (ret)
*ret = nexthop;
nexthop = NULL;
TAKE_PTR(nexthop);
return 0;
}