You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ch...@apache.org on 2018/11/13 04:58:43 UTC

[mesos] branch master updated: Fixed an FTS tree leakage in the copy backend.

This is an automated email from the ASF dual-hosted git repository.

chhsiao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git


The following commit(s) were added to refs/heads/master by this push:
     new 614d112  Fixed an FTS tree leakage in the copy backend.
614d112 is described below

commit 614d1122f437683632d4a1b4eb745c5e014251e9
Author: Chun-Hung Hsiao <ch...@mesosphere.io>
AuthorDate: Mon Nov 12 19:07:09 2018 -0800

    Fixed an FTS tree leakage in the copy backend.
    
    Review: https://reviews.apache.org/r/69321
---
 src/slave/containerizer/mesos/provisioner/backends/copy.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/slave/containerizer/mesos/provisioner/backends/copy.cpp b/src/slave/containerizer/mesos/provisioner/backends/copy.cpp
index a3237a3..9c2fdf1 100644
--- a/src/slave/containerizer/mesos/provisioner/backends/copy.cpp
+++ b/src/slave/containerizer/mesos/provisioner/backends/copy.cpp
@@ -151,6 +151,7 @@ Future<Nothing> CopyBackendProcess::_provision(
     if (node->fts_info == FTS_DNR ||
         node->fts_info == FTS_ERR ||
         node->fts_info == FTS_NS) {
+      ::fts_close(tree);
       return Failure(
           "Failed to read '" + ftsPath + "': " + os::strerror(node->fts_errno));
     }