]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/execute: clear bind_mounts
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 13 Feb 2018 05:22:23 +0000 (14:22 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 21 Feb 2018 00:05:37 +0000 (09:05 +0900)
src/core/execute.c

index 0d6656d503f052c3a4f9bb7da13873e7637fac2f..06cbb57af4c22056af3eaf989350db332ee2a98c 100644 (file)
@@ -3621,6 +3621,8 @@ void exec_context_done(ExecContext *c) {
         c->inaccessible_paths = strv_free(c->inaccessible_paths);
 
         bind_mount_free_many(c->bind_mounts, c->n_bind_mounts);
+        c->bind_mounts = NULL;
+        c->n_bind_mounts = 0;
 
         c->cpuset = cpu_set_mfree(c->cpuset);