diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-01-04 11:12:57 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-01-04 11:31:30 +0100 |
commit | 1893972894c197c1ac5999f8f555749bb673c262 (patch) | |
tree | c10028d368708fecff8e292b357803514c87cda9 /src/run | |
parent | test-sizeof: also add uid_t (diff) | |
download | systemd-1893972894c197c1ac5999f8f555749bb673c262.tar.xz systemd-1893972894c197c1ac5999f8f555749bb673c262.zip |
run: double free
Introduced in f2b9f2c83e5b4035b22eb2f610531fce275bf55f. CID #1384218.
Diffstat (limited to 'src/run')
-rw-r--r-- | src/run/run.c | 4 |
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; } |