提交 b2777486 编写于 作者: dengyihao's avatar dengyihao

fix mem leak

上级 6c40af00
...@@ -430,12 +430,12 @@ void cliHandleExceptImpl(SCliConn* pConn, int32_t code) { ...@@ -430,12 +430,12 @@ void cliHandleExceptImpl(SCliConn* pConn, int32_t code) {
if (pCtx == NULL || pCtx->pSem == NULL) { if (pCtx == NULL || pCtx->pSem == NULL) {
if (transMsg.info.ahandle == NULL) { if (transMsg.info.ahandle == NULL) {
destroyCmsg(pMsg); if (REQUEST_NO_RESP(&pMsg->msg)) destroyCmsg(pMsg);
once = true; once = true;
continue; continue;
} }
} }
if (!REQUEST_NO_RESP(&pMsg->msg) && cliAppCb(pConn, &transMsg, pMsg) != 0) { if (cliAppCb(pConn, &transMsg, pMsg) != 0) {
return; return;
} }
destroyCmsg(pMsg); destroyCmsg(pMsg);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册