fix cancel create tsma memory use after free
This commit is contained in:
parent
9bcc309b02
commit
6aa09f4d8f
|
@ -538,7 +538,6 @@ void stopAllQueries(SRequestObj *pRequest) {
|
||||||
pTmp = acquireRequest(tmpRefId);
|
pTmp = acquireRequest(tmpRefId);
|
||||||
if (pTmp) {
|
if (pTmp) {
|
||||||
pReqList[++reqIdx] = pTmp;
|
pReqList[++reqIdx] = pTmp;
|
||||||
releaseRequest(tmpRefId);
|
|
||||||
} else {
|
} else {
|
||||||
tscError("prev req ref 0x%" PRIx64 " is not there", tmpRefId);
|
tscError("prev req ref 0x%" PRIx64 " is not there", tmpRefId);
|
||||||
break;
|
break;
|
||||||
|
@ -547,6 +546,7 @@ void stopAllQueries(SRequestObj *pRequest) {
|
||||||
|
|
||||||
for (int32_t i = reqIdx; i >= 0; i--) {
|
for (int32_t i = reqIdx; i >= 0; i--) {
|
||||||
taosStopQueryImpl(pReqList[i]);
|
taosStopQueryImpl(pReqList[i]);
|
||||||
|
releaseRequest(pReqList[i]->self);
|
||||||
}
|
}
|
||||||
|
|
||||||
taosStopQueryImpl(pRequest);
|
taosStopQueryImpl(pRequest);
|
||||||
|
|
Loading…
Reference in New Issue