You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by so...@apache.org on 2017/05/11 20:45:24 UTC

[trafficserver] branch 6.2.x updated: Fix slow leak in traffic_manager caused by un-freed capabilities.

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

sorber pushed a commit to branch 6.2.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git

The following commit(s) were added to refs/heads/6.2.x by this push:
       new  667c38e   Fix slow leak in traffic_manager caused by un-freed capabilities.
667c38e is described below

commit 667c38e5b98980969e2a62c34da7ebcf401f6da8
Author: Chris Lemmons <al...@gmail.com>
AuthorDate: Tue May 9 16:51:17 2017 -0600

    Fix slow leak in traffic_manager caused by un-freed capabilities.
    
    (cherry picked from commit 5c3d091a6e75827a873f2568de004a2880e5c966)
    
    Conflicts:
    	lib/ts/ink_cap.cc
---
 lib/ts/ink_cap.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/ts/ink_cap.cc b/lib/ts/ink_cap.cc
index f025278..bb39616 100644
--- a/lib/ts/ink_cap.cc
+++ b/lib/ts/ink_cap.cc
@@ -396,6 +396,7 @@ ElevateAccess::releasePrivilege()
     if (cap_set_proc(static_cast<cap_t>(cap_state)) != 0) {
       Fatal("failed to restore privileged capabilities: %s", strerror(errno));
     }
+    cap_free(this->cap_state);
     cap_state = NULL;
   }
 }

-- 
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>'].