From babde623be0cfa2b291661e53d6cbecea39bdcd9 Mon Sep 17 00:00:00 2001 From: shenglian zhou Date: Thu, 29 Jul 2021 15:28:24 +0800 Subject: [PATCH] [TD-5235]:try not to copy the content of rpc msg --- src/client/src/tscServer.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/client/src/tscServer.c b/src/client/src/tscServer.c index 963b831c1d..434b798fc6 100644 --- a/src/client/src/tscServer.c +++ b/src/client/src/tscServer.c @@ -521,8 +521,6 @@ void tscProcessMsgFromServer(SRpcMsg *rpcMsg, SRpcEpSet *pEpSet) { SRpcMsg* rpcMsgCopy = calloc(1, sizeof(SRpcMsg)); memcpy(rpcMsgCopy, rpcMsg, sizeof(struct SRpcMsg)); - rpcMsgCopy->pCont = rpcMallocCont(rpcMsg->contLen); - memcpy(rpcMsgCopy->pCont, rpcMsg->pCont, rpcMsg->contLen); schedMsg.ahandle = (void*)rpcMsgCopy; SRpcEpSet* pEpSetCopy = NULL; -- GitLab