Merge pull request #1113 from taosdata/beta/v1.6.5.3
fix memory leaks in client
This commit is contained in:
commit
0134ebb65d
|
@ -447,6 +447,10 @@ void tscDestroyLocalReducer(SSqlObj *pSql) {
|
|||
for(int32_t i = 0; i < pCmd->fieldsInfo.numOfOutputCols; ++i) {
|
||||
SQLFunctionCtx *pCtx = &pLocalReducer->pCtx[i];
|
||||
tVariantDestroy(&pCtx->tag);
|
||||
|
||||
if (pCtx->tagInfo.pTagCtxList != NULL) {
|
||||
tfree(pCtx->tagInfo.pTagCtxList);
|
||||
}
|
||||
}
|
||||
|
||||
tfree(pLocalReducer->pCtx);
|
||||
|
|
Loading…
Reference in New Issue