From 96cfd3f954ca7519ec9d20727eb25c7d53f49f5f Mon Sep 17 00:00:00 2001 From: dapan1121 <89396746@qq.com> Date: Tue, 30 Mar 2021 19:03:59 +0800 Subject: [PATCH] fix double free issue --- src/client/src/tscUtil.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client/src/tscUtil.c b/src/client/src/tscUtil.c index 0f5e607e22..858be75911 100644 --- a/src/client/src/tscUtil.c +++ b/src/client/src/tscUtil.c @@ -2187,6 +2187,8 @@ SSqlObj* createSubqueryObj(SSqlObj* pSql, int16_t tableIndex, __async_cb_func_t pnCmd->tagData.data = NULL; pnCmd->tagData.dataLen = 0; + pnCmd->pUdfInfo = taosArrayDup(pCmd->pUdfInfo); + if (tscAddSubqueryInfo(pnCmd) != TSDB_CODE_SUCCESS) { terrno = TSDB_CODE_TSC_OUT_OF_MEMORY; goto _error; -- GitLab