projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57183d1
)
networkd: correctly handle manager_free(NULL)
author
Tom Gundersen
<teg@jklm.no>
Thu, 13 Feb 2014 00:38:53 +0000
(
01:38
+0100)
committer
Tom Gundersen
<teg@jklm.no>
Thu, 13 Feb 2014 00:41:32 +0000
(
01:41
+0100)
src/network/networkd-manager.c
patch
|
blob
|
history
diff --git
a/src/network/networkd-manager.c
b/src/network/networkd-manager.c
index
54e83e3
..
c1ad69b
100644
(file)
--- 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);