summaryrefslogtreecommitdiff
path: root/src/run
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-01-04 11:12:57 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-01-04 11:31:30 +0100
commit1893972894c197c1ac5999f8f555749bb673c262 (patch)
treec10028d368708fecff8e292b357803514c87cda9 /src/run
parent85f8fa4dee425679cdc0ec618855e4b8edc82d03 (diff)
downloadsystemd-1893972894c197c1ac5999f8f555749bb673c262.tar.gz
run: double free
Introduced in f2b9f2c83e5b4035b22eb2f610531fce275bf55f. CID #1384218.
Diffstat (limited to 'src/run')
-rw-r--r--src/run/run.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/run/run.c b/src/run/run.c
index b018d1547e..0ff8db6b3e 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;
}