[systemd-devel] [PATCH] Arch Linux: Don't crash because of double free when services are disabled in rc.conf
Lennart Poettering
lennart at poettering.net
Tue Sep 28 10:42:29 PDT 2010
On Tue, 28.09.10 04:21, Matthias Schiffer (mschiffer at universe-factory.net) wrote:
Applied.
Thanks!
> ---
> src/service.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/src/service.c b/src/service.c
> index 021bc86..c58536d 100644
> --- a/src/service.c
> +++ b/src/service.c
> @@ -2731,6 +2731,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;
Lennart
--
Lennart Poettering - Red Hat, Inc.
More information about the systemd-devel
mailing list