diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2010-09-28 04:21:34 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-09-28 19:41:04 +0200 |
commit | 409db0029927f29775c8396acc98cafe14412a53 (patch) | |
tree | 209fb2df4b8e0f99e107ce148c425693b3c74266 | |
parent | 30b89475ee46b15b6876519da4c5fe0858bae8c8 (diff) |
service: Don't crash because of double free when Arch services are disabled in rc.conf
-rw-r--r-- | src/service.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |