fix the memory leaking for qhandle case

This commit is contained in:
Jeff Tao 2020-06-11 08:39:41 +00:00
parent 5123d296f9
commit c2b95683ad
1 changed files with 2 additions and 0 deletions

View File

@ -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;