fix mem leak

This commit is contained in:
yihaoDeng 2022-09-06 20:09:12 +08:00
parent 6c40af0059
commit b277748662
1 changed files with 2 additions and 2 deletions

View File

@ -430,12 +430,12 @@ void cliHandleExceptImpl(SCliConn* pConn, int32_t code) {
if (pCtx == NULL || pCtx->pSem == NULL) {
if (transMsg.info.ahandle == NULL) {
destroyCmsg(pMsg);
if (REQUEST_NO_RESP(&pMsg->msg)) destroyCmsg(pMsg);
once = true;
continue;
}
}
if (!REQUEST_NO_RESP(&pMsg->msg) && cliAppCb(pConn, &transMsg, pMsg) != 0) {
if (cliAppCb(pConn, &transMsg, pMsg) != 0) {
return;
}
destroyCmsg(pMsg);