From 624b5a636f2e0003a67025274d7afe9ebc55423b Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Thu, 13 Feb 2014 01:38:53 +0100 Subject: [PATCH] networkd: correctly handle manager_free(NULL) --- src/network/networkd-manager.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/network/networkd-manager.c b/src/network/networkd-manager.c index 54e83e3..c1ad69b 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); -- 2.7.4