Skip to content

Commit 45de3cf

Browse files
authored
fix: 修复一处内存泄露问题 #843 (#848)
1 parent e95da2f commit 45de3cf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

common/remote/rpc/rpc_client.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,7 @@ func (r *RpcClient) registerServerRequestHandlers() {
381381
func (r *RpcClient) Shutdown() {
382382
atomic.StoreInt32((*int32)(&r.rpcClientStatus), (int32)(SHUTDOWN))
383383
r.closeConnection()
384+
delete(clientMap, r.name)
384385
}
385386

386387
func (r *RpcClient) RegisterServerRequestHandler(request func() rpc_request.IRequest, handler IServerRequestHandler) {

0 commit comments

Comments
 (0)