service: Don't crash because of double free when Arch services are disabled in rc.conf
This commit is contained in:
committed by
Lennart Poettering
parent
30b89475ee
commit
409db00299
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user