summaryrefslogtreecommitdiff
path: root/src/core/unit.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-12-01 09:29:14 -0500
committerGitHub <noreply@github.com>2016-12-01 09:29:14 -0500
commita32ffa161c04eefb08c92ca9c9f37c3a81117e29 (patch)
tree53b030a1a56c7c80751ce3401d455ce6b394de71 /src/core/unit.c
parentb06662e85397448a5aba45ae7c698be6b6b86ee0 (diff)
parentcb638b5e96465e695eaf34859ac762236b4bcb1e (diff)
Merge pull request #4694 from poettering/chase-everywhere
tree-wide: stop using canonicalize_file_name(), use chase_symlinks() …
Diffstat (limited to 'src/core/unit.c')
-rw-r--r--src/core/unit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/unit.c b/src/core/unit.c
index cba6342eca..e485c01fc1 100644
--- a/src/core/unit.c
+++ b/src/core/unit.c
@@ -516,7 +516,8 @@ void unit_free(Unit *u) {
Iterator i;
char *t;
- assert(u);
+ if (!u)
+ return;
if (u->transient_file)
fclose(u->transient_file);