From 347178bd977eb1323402d10a64bc3c3f6b157ae6 Mon Sep 17 00:00:00 2001 From: Qiao Longfei Date: Thu, 14 Mar 2019 15:50:08 +0800 Subject: [PATCH] fix pserver memory leak --- paddle/fluid/operators/distributed/grpc/grpc_server.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/paddle/fluid/operators/distributed/grpc/grpc_server.cc b/paddle/fluid/operators/distributed/grpc/grpc_server.cc index a0ed79201..f32681738 100644 --- a/paddle/fluid/operators/distributed/grpc/grpc_server.cc +++ b/paddle/fluid/operators/distributed/grpc/grpc_server.cc @@ -107,9 +107,11 @@ class RequestSend final : public RequestBase { int trainer_id = request_->GetTrainerId(); framework::Variable* outvar = nullptr; + /* if (!request_handler_->sync_mode()) { request_->ReleaseOwnershipOfLocalScope(); } + */ request_handler_->Handle(varname, scope, invar, &outvar, trainer_id); Finish(reply_, &responder_); } -- GitLab