From 0b055470ec65eb15646ed32775ce4d07d340ce52 Mon Sep 17 00:00:00 2001 From: shenglian zhou Date: Thu, 6 Apr 2023 14:42:16 +0800 Subject: [PATCH] fix: free pFuncVersions of SRetrieveFuncRsp --- source/common/src/tmsg.c | 1 + source/libs/function/src/udfd.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/source/common/src/tmsg.c b/source/common/src/tmsg.c index f7f1827807..2d2c6f5523 100644 --- a/source/common/src/tmsg.c +++ b/source/common/src/tmsg.c @@ -1949,6 +1949,7 @@ void tFreeSRetrieveFuncRsp(SRetrieveFuncRsp *pRsp) { tFreeSFuncInfo(pInfo); } taosArrayDestroy(pRsp->pFuncInfos); + taosArrayDestroy(pRsp->pFuncVersions); } int32_t tSerializeSTableCfgReq(void *buf, int32_t bufLen, STableCfgReq *pReq) { diff --git a/source/libs/function/src/udfd.c b/source/libs/function/src/udfd.c index e25aade9f6..6d01768369 100644 --- a/source/libs/function/src/udfd.c +++ b/source/libs/function/src/udfd.c @@ -84,7 +84,7 @@ void udfdCPluginUdfInitLoadAggFuncs(SUdfCPluginCtx *udfCtx, const char *udfName) strncpy(finishFuncName, processFuncName, sizeof(finishFuncName)); strncat(finishFuncName, finishSuffix, strlen(finishSuffix)); uv_dlsym(&udfCtx->lib, finishFuncName, (void **)(&udfCtx->aggFinishFunc)); - + char mergeFuncName[TSDB_FUNC_NAME_LEN + 6] = {0}; char *mergeSuffix = "_merge"; strncpy(mergeFuncName, processFuncName, sizeof(mergeFuncName)); -- GitLab