diff --git a/source/common/src/tmsg.c b/source/common/src/tmsg.c index 7a238440a70e32fbc0084b2bf4f9fbb2c2396a26..371073ed762bafe53236b088c5a18109888aa187 100644 --- a/source/common/src/tmsg.c +++ b/source/common/src/tmsg.c @@ -7212,6 +7212,7 @@ void tDestroySSubmitReq2(SSubmitReq2 *pReq, int32_t flag) { tDestroySSubmitTbData(&aSubmitTbData[i], flag); } taosArrayDestroy(pReq->aSubmitTbData); + pReq->aSubmitTbData = NULL; } int32_t tEncodeSSubmitRsp2(SEncoder *pCoder, const SSubmitRsp2 *pRsp) { diff --git a/source/dnode/vnode/src/tq/tqRead.c b/source/dnode/vnode/src/tq/tqRead.c index 4f92330000f79dd1fb82078c05a2456a0a89d07c..54e4e393ecff1c001fcd778005b0645b13f589c8 100644 --- a/source/dnode/vnode/src/tq/tqRead.c +++ b/source/dnode/vnode/src/tq/tqRead.c @@ -290,6 +290,7 @@ void tqCloseReader(STqReader* pReader) { } // free hash taosHashCleanup(pReader->tbIdHash); + tDestroySSubmitReq2(&pReader->submit, TSDB_MSG_FLG_DECODE); taosMemoryFree(pReader); }