From 8e06d57ccbd1c64c0719530fb58a4179cb364509 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Tue, 13 Feb 2018 14:22:23 +0900 Subject: [PATCH] core/execute: clear bind_mounts --- src/core/execute.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/execute.c b/src/core/execute.c index 0d6656d503..06cbb57af4 100644 --- a/src/core/execute.c +++ b/src/core/execute.c @@ -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);