diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/load-fragment.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/load-fragment.c b/src/core/load-fragment.c index 2f3acd7cbe..78da23ea57 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; |