From 825db81bef66005d633d7dbd5402f83acc020319 Mon Sep 17 00:00:00 2001 From: kailixu Date: Sat, 24 Aug 2024 10:43:40 +0800 Subject: [PATCH] fix: memory leak of geos --- source/util/src/tgeosctx.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/source/util/src/tgeosctx.c b/source/util/src/tgeosctx.c index 9248c8cf58..41d9bb9ae3 100644 --- a/source/util/src/tgeosctx.c +++ b/source/util/src/tgeosctx.c @@ -68,10 +68,6 @@ int32_t getThreadLocalGeosCtx(SGeosContext **ppCtx) { TAOS_CHECK_EXIT(TAOS_SYSTEM_ERROR(errno)); } - if ((taosThreadSetSpecific(tlGeosCtxKey, &tlGeosCtxObj)) != 0) { - TAOS_CHECK_EXIT(TAOS_SYSTEM_ERROR(errno)); - } - tlGeosCtx = &tlGeosCtxObj; *ppCtx = tlGeosCtx; _exit: