run: double free

Introduced in f2b9f2c83e. CID #1384218.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2018-01-04 11:12:57 +01:00
parent 85f8fa4dee
commit 1893972894

View 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;
}