From 409db0029927f29775c8396acc98cafe14412a53 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 28 Sep 2010 04:21:34 +0200 Subject: 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(+) (limited to 'src/service.c') diff --git a/src/service.c b/src/service.c index 6a230e50c8..d9e0b209d2 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; -- cgit v1.2.3-54-g00ecf