handle mem leak failure
This commit is contained in:
parent
9221bfb51e
commit
44958e3c76
|
@ -1886,12 +1886,9 @@ void processMsgFromServer(void* parent, SRpcMsg* pMsg, SEpSet* pEpSet) {
|
||||||
arg->msg = *pMsg;
|
arg->msg = *pMsg;
|
||||||
arg->pEpset = tEpSet;
|
arg->pEpset = tEpSet;
|
||||||
|
|
||||||
if (0 != taosAsyncExec(doProcessMsgFromServer, arg, NULL)) {
|
if ((code = taosAsyncExec(doProcessMsgFromServer, arg, NULL)) != 0) {
|
||||||
tscError("failed to sched msg to tsc, tsc ready to quit");
|
|
||||||
rpcFreeCont(pMsg->pCont);
|
|
||||||
taosMemoryFree(arg->pEpset);
|
|
||||||
destroySendMsgInfo(pMsg->info.ahandle);
|
|
||||||
taosMemoryFree(arg);
|
taosMemoryFree(arg);
|
||||||
|
goto _exit;
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
_exit:
|
_exit:
|
||||||
|
|
Loading…
Reference in New Issue