You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by bm...@apache.org on 2014/03/14 07:35:24 UTC
[2/3] git commit: Option::get reference cleanup in libprocess.
Option::get reference cleanup in libprocess.
Review: https://reviews.apache.org/r/18384
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/ed9f3f96
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/ed9f3f96
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/ed9f3f96
Branch: refs/heads/master
Commit: ed9f3f96e4b4f93a3413a06a7053dd6593ae18b3
Parents: 97ec42c
Author: Dominic Hamon <dh...@twopensource.com>
Authored: Thu Mar 13 23:00:58 2014 -0700
Committer: Benjamin Mahler <bm...@twitter.com>
Committed: Thu Mar 13 23:00:58 2014 -0700
----------------------------------------------------------------------
3rdparty/libprocess/include/process/future.hpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/ed9f3f96/3rdparty/libprocess/include/process/future.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/include/process/future.hpp b/3rdparty/libprocess/include/process/future.hpp
index 27b0970..5e12476 100644
--- a/3rdparty/libprocess/include/process/future.hpp
+++ b/3rdparty/libprocess/include/process/future.hpp
@@ -598,7 +598,8 @@ void discard(WeakFuture<T> reference)
{
Option<Future<T> > future = reference.get();
if (future.isSome()) {
- future.get().discard();
+ Future<T> future_ = future.get();
+ future_.discard();
}
}