diff --git a/src/core/load-fragment.c b/src/core/load-fragment.c index 2f3acd7cbeb..78da23ea57d 100644 --- a/src/core/load-fragment.c +++ b/src/core/load-fragment.c @@ -1367,8 +1367,11 @@ int config_parse_timer(const char *unit, } v = new0(TimerValue, 1); - if (!v) + if (!v) { + if (c) + free(c); return log_oom(); + } v->base = b; v->value = u;