From 409db0029927f29775c8396acc98cafe14412a53 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 28 Sep 2010 04:21:34 +0200 Subject: [PATCH] service: Don't crash because of double free when Arch services are disabled in rc.conf --- src/service.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/service.c b/src/service.c index 6a230e50..d9e0b209 100644 --- a/src/service.c +++ b/src/service.c @@ -2795,6 +2795,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; -- 2.39.5