From 1893972894c197c1ac5999f8f555749bb673c262 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 4 Jan 2018 11:12:57 +0100 Subject: [PATCH] run: double free Introduced in f2b9f2c83e5b4035b22eb2f610531fce275bf55f. CID #1384218. --- src/run/run.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; }