From fc03f90661a589c9c59171e7491a13dd0a645b27 Mon Sep 17 00:00:00 2001 From: haojun Liao Date: Thu, 9 Jan 2020 21:34:26 +0800 Subject: [PATCH] fix memory leaks in client fix memory leaks in client --- src/client/src/tscSecondaryMerge.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/client/src/tscSecondaryMerge.c b/src/client/src/tscSecondaryMerge.c index 737c1342d8..ae41f739ee 100644 --- a/src/client/src/tscSecondaryMerge.c +++ b/src/client/src/tscSecondaryMerge.c @@ -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); -- GitLab