fix: memory leak of geos
This commit is contained in:
parent
a4e6444646
commit
825db81bef
|
@ -68,10 +68,6 @@ int32_t getThreadLocalGeosCtx(SGeosContext **ppCtx) {
|
||||||
TAOS_CHECK_EXIT(TAOS_SYSTEM_ERROR(errno));
|
TAOS_CHECK_EXIT(TAOS_SYSTEM_ERROR(errno));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((taosThreadSetSpecific(tlGeosCtxKey, &tlGeosCtxObj)) != 0) {
|
|
||||||
TAOS_CHECK_EXIT(TAOS_SYSTEM_ERROR(errno));
|
|
||||||
}
|
|
||||||
|
|
||||||
tlGeosCtx = &tlGeosCtxObj;
|
tlGeosCtx = &tlGeosCtxObj;
|
||||||
*ppCtx = tlGeosCtx;
|
*ppCtx = tlGeosCtx;
|
||||||
_exit:
|
_exit:
|
||||||
|
|
Loading…
Reference in New Issue