]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
run: double free
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 4 Jan 2018 10:12:57 +0000 (11:12 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 4 Jan 2018 10:31:30 +0000 (11:31 +0100)
Introduced in f2b9f2c83e5b4035b22eb2f610531fce275bf55f. CID #1384218.

src/run/run.c

index b018d1547e46a74cbc5ae46eaf07a6a95f13be9a..0ff8db6b3ece30be5f6a0dd44224d1f2849db780 100644 (file)
@@ -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;
 }