diff options
-rw-r--r-- | test-udev.c | 1 | ||||
-rw-r--r-- | udev_node.c | 1 | ||||
-rw-r--r-- | udevd.c | 1 | ||||
-rw-r--r-- | udevstart.c | 1 |
4 files changed, 3 insertions, 1 deletions
diff --git a/test-udev.c b/test-udev.c index bbe50eeeb4..e40a448436 100644 --- a/test-udev.c +++ b/test-udev.c @@ -175,6 +175,7 @@ int main(int argc, char *argv[], char *envp[]) fail: udev_rules_cleanup(&rules); sysfs_cleanup(); + selinux_exit(); exit: logging_close(); diff --git a/udev_node.c b/udev_node.c index d069dfc4aa..1632c2cc3c 100644 --- a/udev_node.c +++ b/udev_node.c @@ -237,7 +237,6 @@ int udev_node_add(struct udevice *udev, struct udevice *udev_old) } exit: - selinux_exit(); return retval; } @@ -1230,6 +1230,7 @@ int main(int argc, char *argv[], char *envp[]) exit: udev_rules_cleanup(&rules); sysfs_cleanup(); + selinux_exit(); if (signal_pipe[READ_END] >= 0) close(signal_pipe[READ_END]); diff --git a/udevstart.c b/udevstart.c index 6e1cb050c4..6ea18272ea 100644 --- a/udevstart.c +++ b/udevstart.c @@ -367,6 +367,7 @@ int main(int argc, char *argv[], char *envp[]) udev_rules_cleanup(&rules); sysfs_cleanup(); + selinux_exit(); logging_close(); return 0; } |