summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-02-13 01:38:53 +0100
committerTom Gundersen <teg@jklm.no>2014-02-13 01:41:32 +0100
commit624b5a636f2e0003a67025274d7afe9ebc55423b (patch)
tree0ca63f757d40b9a506bfb62449e2a3f76cff5222 /src
parent57183d117a1d6a96d71ce99d648beb0d2b36228d (diff)
networkd: correctly handle manager_free(NULL)
Diffstat (limited to 'src')
-rw-r--r--src/network/networkd-manager.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/network/networkd-manager.c b/src/network/networkd-manager.c
index 54e83e3dd5..c1ad69bf51 100644
--- a/src/network/networkd-manager.c
+++ b/src/network/networkd-manager.c
@@ -98,6 +98,9 @@ void manager_free(Manager *m) {
NetDev *netdev;
Link *link;
+ if (!m)
+ return;
+
udev_monitor_unref(m->udev_monitor);
udev_unref(m->udev);
sd_bus_unref(m->bus);