fix: memory leak of geos

This commit is contained in:
kailixu 2024-08-24 10:43:40 +08:00
parent a4e6444646
commit 825db81bef
1 changed files with 0 additions and 4 deletions

View File

@ -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: