diff --git a/source/libs/function/src/udfd.c b/source/libs/function/src/udfd.c index 398f4f636c71dcae68b8ee16ea0659da1317a500..9cd04dc3533607a81bf75e7c9c37ee4fbbf8e616 100644 --- a/source/libs/function/src/udfd.c +++ b/source/libs/function/src/udfd.c @@ -647,6 +647,7 @@ void udfdProcessTeardownRequest(SUvUdfWork *uvUdf, SUdfRequest *request) { uv_cond_destroy(&udf->condReady); uv_mutex_destroy(&udf->lock); udf->scriptPlugin->udfDestroyFunc(udf->scriptUdfCtx); + taosMemoryFree(udf); } taosMemoryFree(handle);