提交 347178bd 编写于 作者: Q Qiao Longfei

fix pserver memory leak

上级 c567debc
...@@ -107,9 +107,11 @@ class RequestSend final : public RequestBase { ...@@ -107,9 +107,11 @@ class RequestSend final : public RequestBase {
int trainer_id = request_->GetTrainerId(); int trainer_id = request_->GetTrainerId();
framework::Variable* outvar = nullptr; framework::Variable* outvar = nullptr;
/*
if (!request_handler_->sync_mode()) { if (!request_handler_->sync_mode()) {
request_->ReleaseOwnershipOfLocalScope(); request_->ReleaseOwnershipOfLocalScope();
} }
*/
request_handler_->Handle(varname, scope, invar, &outvar, trainer_id); request_handler_->Handle(varname, scope, invar, &outvar, trainer_id);
Finish(reply_, &responder_); Finish(reply_, &responder_);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册