From 563c69c6b2c2bd691352ef522cb9ec95c08a0c63 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Thu, 3 Jul 2014 09:43:31 +0200 Subject: networkd: netdev - take ref immediately after calling out Keeping the refcounting next to the sd_bus_call_async() makes it easier to check. --- src/network/networkd-route.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/network/networkd-route.c') diff --git a/src/network/networkd-route.c b/src/network/networkd-route.c index d0a04ecfee..acfe3f023f 100644 --- a/src/network/networkd-route.c +++ b/src/network/networkd-route.c @@ -164,6 +164,8 @@ int route_drop(Route *route, Link *link, return r; } + link_ref(link); + return 0; } @@ -235,6 +237,8 @@ int route_configure(Route *route, Link *link, return r; } + link_ref(link); + return 0; } -- cgit v1.2.3