fix(tmq): fix memory leak.

This commit is contained in:
Haojun Liao 2023-05-04 17:03:53 +08:00
parent 09a04052ec
commit 1a8a834a2c
1 changed files with 2 additions and 0 deletions

View File

@ -341,6 +341,8 @@ int32_t tqNextBlockInWal(STqReader* pReader) {
SDecoder decoder = {0};
tDecoderInit(&decoder, pBody, bodyLen);
taosArrayDestroy(pReader->submit.aSubmitTbData);
if (tDecodeSubmitReq(&decoder, &pReader->submit) < 0) {
tDecoderClear(&decoder);
tqError("decode wal file error, msgLen:%d, ver:%"PRId64, bodyLen, ver);