summaryrefslogtreecommitdiff
path: root/src/core/unit.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-09-09 23:05:10 +0200
committerLennart Poettering <lennart@poettering.net>2015-09-09 23:05:58 +0200
commit6796073e330f49923c5134652ee085e29fc88002 (patch)
tree74846808a3d75996ef72fa305a54c62de6f2c5f0 /src/core/unit.c
parent1d1423257aa7d486e1affc7495fce83438226245 (diff)
tree-wide: make use of the fact that strv_free() returns NULL
Another Coccinelle patch.
Diffstat (limited to 'src/core/unit.c')
-rw-r--r--src/core/unit.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/unit.c b/src/core/unit.c
index 24a6747b10..563d7bf254 100644
--- a/src/core/unit.c
+++ b/src/core/unit.c
@@ -445,8 +445,7 @@ static void unit_free_requires_mounts_for(Unit *u) {
}
}
- strv_free(u->requires_mounts_for);
- u->requires_mounts_for = NULL;
+ u->requires_mounts_for = strv_free(u->requires_mounts_for);
}
static void unit_done(Unit *u) {