Skip to content

Commit eaf82da

Browse files
committed
bugfix: fix the memory leak issue in the completions interface.
1 parent 5c5d5e4 commit eaf82da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xllm/api_service/api_service.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ void APIService::CompletionsHttp(::google::protobuf::RpcController* controller,
113113
}
114114

115115
std::shared_ptr<Call> call = std::make_shared<CompletionCall>(
116-
ctrl, done_guard.release(), req_pb, resp_pb);
116+
ctrl, done_guard.release(), req_pb, resp_pb, arena != nullptr);
117117
completion_service_impl_->process_async(call);
118118
}
119119

0 commit comments

Comments
 (0)