[TD-5235]<fix>:try not to copy the content of rpc msg
This commit is contained in:
parent
7032e5a00b
commit
babde623be
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue