fix mem leak

This commit is contained in:
yihaoDeng 2024-09-20 10:40:59 +08:00
parent 93702c8c41
commit 06edb735ea
1 changed files with 2 additions and 2 deletions

View File

@ -2502,12 +2502,12 @@ bool cliMayRetry(SCliConn* pConn, SCliReq* pReq, STransMsg* pResp) {
SReqCtx* pCtx = pReq->ctx; SReqCtx* pCtx = pReq->ctx;
int32_t code = pResp->code; int32_t code = pResp->code;
cliRetryMayInitCtx(pInst, pReq);
if (pReq->msg.info.qId != 0) { if (pReq->msg.info.qId != 0) {
return false; return false;
} }
cliRetryMayInitCtx(pInst, pReq);
if (!cliRetryShouldRetry(pInst, pResp)) { if (!cliRetryShouldRetry(pInst, pResp)) {
return false; return false;
} }