提交 37ae80d1 编写于 作者: H Haojun Liao

fix(tsdb): fix memory leak.

上级 d82fb45a
......@@ -392,12 +392,9 @@ static bool existsFromSttBlkStatis(const TStatisBlkArray *pStatisBlkArray, uint6
tsdbSttFileReadStatisBlock(pReader, p, &block);
int32_t index = tarray2SearchIdx(block.uid, &uid, sizeof(int64_t), uidComparFn, TD_EQ);
if (index == -1) { // has record, continue.
tStatisBlockDestroy(&block);
return false;
}
tStatisBlockDestroy(&block);
return true;
return (index != -1);
}
int32_t tLDataIterOpen2(struct SLDataIter *pIter, SSttFileReader *pSttFileReader, int32_t iStt, int8_t backward,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册