fix(tmq): fix invalid free.
This commit is contained in:
parent
25f451ba81
commit
32b4642dac
|
@ -341,7 +341,15 @@ int32_t tqNextBlockInWal(STqReader* pReader) {
|
||||||
|
|
||||||
SDecoder decoder = {0};
|
SDecoder decoder = {0};
|
||||||
tDecoderInit(&decoder, pBody, bodyLen);
|
tDecoderInit(&decoder, pBody, bodyLen);
|
||||||
taosArrayDestroy(pReader->submit.aSubmitTbData);
|
|
||||||
|
{
|
||||||
|
int32_t nSubmitTbData = taosArrayGetSize(pReader->submit.aSubmitTbData);
|
||||||
|
for (int32_t i = 0; i < nSubmitTbData; i++) {
|
||||||
|
SSubmitTbData* pData = taosArrayGet(pReader->submit.aSubmitTbData, i);
|
||||||
|
pData->aRowP = taosArrayDestroy(pData->aRowP);
|
||||||
|
}
|
||||||
|
pReader->submit.aSubmitTbData = taosArrayDestroy(pReader->submit.aSubmitTbData);
|
||||||
|
}
|
||||||
|
|
||||||
if (tDecodeSubmitReq(&decoder, &pReader->submit) < 0) {
|
if (tDecodeSubmitReq(&decoder, &pReader->submit) < 0) {
|
||||||
tDecoderClear(&decoder);
|
tDecoderClear(&decoder);
|
||||||
|
|
Loading…
Reference in New Issue