You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by jo...@apache.org on 2016/07/13 20:24:29 UTC
[2/7] mesos git commit: Fixed memory leak in Route::Route() in
libprocess.
Fixed memory leak in Route::Route() in libprocess.
Review: https://reviews.apache.org/r/45991/
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/b968f1cb
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/b968f1cb
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/b968f1cb
Branch: refs/heads/master
Commit: b968f1cbf937ff3d49c89e31c63580c651b608b8
Parents: b413918
Author: Neil Conway <ne...@gmail.com>
Authored: Wed Jul 13 11:01:19 2016 -0700
Committer: Joseph Wu <jo...@apache.org>
Committed: Wed Jul 13 13:21:06 2016 -0700
----------------------------------------------------------------------
3rdparty/libprocess/src/process.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/b968f1cb/3rdparty/libprocess/src/process.cpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/src/process.cpp b/3rdparty/libprocess/src/process.cpp
index 9a31702..00fbea1 100644
--- a/3rdparty/libprocess/src/process.cpp
+++ b/3rdparty/libprocess/src/process.cpp
@@ -255,8 +255,8 @@ public:
Route(const string& name,
const Option<string>& help,
const lambda::function<Future<Response>(const Request&)>& handler)
+ : process(name, help, handler)
{
- process = new RouteProcess(name, help, handler);
spawn(process);
}
@@ -293,7 +293,7 @@ private:
const lambda::function<Future<Response>(const Request&)> handler;
};
- RouteProcess* process;
+ RouteProcess process;
};