#include "securebits.h"
#include "missing.h"
#include "unit-name.h"
+#include "unit-printf.h"
#include "bus-errors.h"
#include "utf8.h"
#include "path-util.h"
Unit *u = data;
bool trigger, negate;
Condition *c;
- char *p;
+ _cleanup_free_ char *p = NULL;
assert(filename);
assert(lvalue);
c = condition_new(cond, p, trigger, negate);
if (!c)
return -ENOMEM;
- free(p);
LIST_PREPEND(Condition, conditions, u->conditions, c);
return 0;
Unit *u = data;
bool trigger, negate;
Condition *c;
- char *s;
+ _cleanup_free_ char *s = NULL;
assert(filename);
assert(lvalue);
c = condition_new(cond, s, trigger, negate);
if (!c)
return log_oom();
- free(s);
LIST_PREPEND(Condition, conditions, u->conditions, c);
return 0;