fix mem leak
This commit is contained in:
parent
93702c8c41
commit
06edb735ea
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue