From: Zbigniew Jędrzejewski-Szmek Date: Thu, 4 Jan 2018 10:12:57 +0000 (+0100) Subject: run: double free X-Git-Tag: v237~152^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1893972894c197c1ac5999f8f555749bb673c262;p=thirdparty%2Fsystemd.git run: double free Introduced in f2b9f2c83e5b4035b22eb2f610531fce275bf55f. CID #1384218. --- diff --git a/src/run/run.c b/src/run/run.c index b018d1547e4..0ff8db6b3ec 100644 --- a/src/run/run.c +++ b/src/run/run.c @@ -120,7 +120,7 @@ static void help(void) { } static int add_timer_property(const char *name, const char *val) { - _cleanup_free_ char *p = NULL; + char *p; assert(name); assert(val); @@ -132,8 +132,6 @@ static int add_timer_property(const char *name, const char *val) { if (strv_consume(&arg_timer_property, p) < 0) return log_oom(); - p = NULL; - return 0; }