Merge pull request #2245 from taosdata/hotfix/leaking
fix the memory leaking for qhandle case
This commit is contained in:
commit
5978cdfcc0
|
@ -425,6 +425,8 @@ void rpcSendResponse(const SRpcMsg *pRsp) {
|
|||
taosTmrReset(rpcProcessIdleTimer, pRpc->idleTime, pConn, pRpc->tmrCtrl, &pConn->pIdleTimer);
|
||||
rpcSendMsgToPeer(pConn, msg, msgLen);
|
||||
pConn->secured = 1; // connection shall be secured
|
||||
|
||||
if (pConn->pReqMsg) rpcFreeCont(pConn->pReqMsg);
|
||||
pConn->pReqMsg = NULL;
|
||||
pConn->reqMsgLen = 0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue