fix: memory leak of geos

This commit is contained in:
kailixu 2024-08-20 09:07:29 +08:00
parent 3ee206b781
commit a2217973ae
1 changed files with 1 additions and 1 deletions

View File

@ -445,7 +445,7 @@ static FORCE_INLINE int32_t varToGeometry(char *buf, SScalarParam *pOut, int32_t
sclError("failed to init geometry ctx, %s", getGeosErrMsg(code));
SCL_ERR_JRET(TSDB_CODE_APP_ERROR);
}
if ((code = doGeomFromText(buf, &t, &len))) {
if ((code = doGeomFromText(buf, &t, &len)) != 0) {
sclInfo("failed to convert text to geometry, %s", getGeosErrMsg(code));
SCL_ERR_JRET(TSDB_CODE_SCALAR_CONVERT_ERROR);
}