summaryrefslogtreecommitdiff
path: root/src/network/networkd-manager.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-05-17 10:12:30 +0200
committerLennart Poettering <lennart@poettering.net>2016-05-17 10:12:30 +0200
commita45bf10d2939f0261f7dbe7ae5092cc1673ebf66 (patch)
tree6c607505f76d2883f0b658dfbbb7419ae9b03df0 /src/network/networkd-manager.c
parent999a43f80ac2edfa3881fcf4c42aa1723945fe10 (diff)
parentbd9a722196f7465d2f3104735b7ca9f62ae9a557 (diff)
Merge pull request #3258 from keszybz/small-networkd-cleanup
Small networkd cleanup
Diffstat (limited to 'src/network/networkd-manager.c')
-rw-r--r--src/network/networkd-manager.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/network/networkd-manager.c b/src/network/networkd-manager.c
index 5dcd4df536..9174dcc7f4 100644
--- a/src/network/networkd-manager.c
+++ b/src/network/networkd-manager.c
@@ -457,11 +457,9 @@ int manager_rtnl_process_route(sd_netlink *rtnl, sd_netlink_message *message, vo
break;
case RTM_DELROUTE:
-
- if (route)
- route_drop(route);
-
+ route_free(route);
break;
+
default:
assert_not_reached("Received invalid RTNL message type");
}