未验证 提交 0134ebb6 编写于 作者: S slguan 提交者: GitHub

Merge pull request #1113 from taosdata/beta/v1.6.5.3

fix memory leaks in client
...@@ -447,6 +447,10 @@ void tscDestroyLocalReducer(SSqlObj *pSql) { ...@@ -447,6 +447,10 @@ void tscDestroyLocalReducer(SSqlObj *pSql) {
for(int32_t i = 0; i < pCmd->fieldsInfo.numOfOutputCols; ++i) { for(int32_t i = 0; i < pCmd->fieldsInfo.numOfOutputCols; ++i) {
SQLFunctionCtx *pCtx = &pLocalReducer->pCtx[i]; SQLFunctionCtx *pCtx = &pLocalReducer->pCtx[i];
tVariantDestroy(&pCtx->tag); tVariantDestroy(&pCtx->tag);
if (pCtx->tagInfo.pTagCtxList != NULL) {
tfree(pCtx->tagInfo.pTagCtxList);
}
} }
tfree(pLocalReducer->pCtx); tfree(pLocalReducer->pCtx);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册