Skip to content

Commit cc75854

Browse files
authored
bugfix: fix the memory leak issue in the completions interface. (#447)
1 parent 6e44d04 commit cc75854

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
@@ -115,7 +115,7 @@ void APIService::CompletionsHttp(::google::protobuf::RpcController* controller,
115115
}
116116

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

0 commit comments

Comments
 (0)