From: Matthias Schiffer Date: Tue, 28 Sep 2010 02:21:34 +0000 (+0200) Subject: service: Don't crash because of double free when Arch services are disabled in rc... X-Git-Tag: v11~49 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=409db0029927f29775c8396acc98cafe14412a53;p=systemd service: Don't crash because of double free when Arch services are disabled in rc.conf --- 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;