core/execute: clear bind_mounts

This commit is contained in:
Yu Watanabe 2018-02-13 14:22:23 +09:00
parent a635a7aec6
commit 8e06d57ccb
1 changed files with 2 additions and 0 deletions

View 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);