fix: memory leak of geos
This commit is contained in:
parent
825db81bef
commit
401673318c
|
@ -68,6 +68,10 @@ 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:
|
||||
|
|
Loading…
Reference in New Issue