[systemd-commits] src/network

Tom Gundersen tomegun at kemper.freedesktop.org
Thu Feb 13 01:40:42 CET 2014


 src/network/networkd-manager.c |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 624b5a636f2e0003a67025274d7afe9ebc55423b
Author: Tom Gundersen <teg at jklm.no>
Date:   Thu Feb 13 01:38:53 2014 +0100

    networkd: correctly handle manager_free(NULL)

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);



More information about the systemd-commits mailing list