diff options
author | Tom Gundersen <teg@jklm.no> | 2014-02-13 01:38:53 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-02-13 01:41:32 +0100 |
commit | 624b5a636f2e0003a67025274d7afe9ebc55423b (patch) | |
tree | 0ca63f757d40b9a506bfb62449e2a3f76cff5222 /src | |
parent | 57183d117a1d6a96d71ce99d648beb0d2b36228d (diff) |
networkd: correctly handle manager_free(NULL)
Diffstat (limited to 'src')
-rw-r--r-- | src/network/networkd-manager.c | 3 |
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); |