diff options
Diffstat (limited to 'src/network')
-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); |