[systemd-devel] [PATCH] Arch Linux: Don't crash because of double free when services are disabled in rc.conf
Matthias Schiffer
mschiffer at universe-factory.net
Mon Sep 27 19:21:34 PDT 2010
---
src/service.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/service.c b/src/service.c
index 021bc86..c58536d 100644
--- a/src/service.c
+++ b/src/service.c
@@ -2731,6 +2731,7 @@ static int service_enumerate(Manager *m) {
STRV_FOREACH(p, arch_daemons_split) {
free(name);
+ name = NULL;
if (**p == '!') /* daemons prefixed with ! are disabled, so ignore them */
continue;
--
1.7.3
More information about the systemd-devel
mailing list