fix srs parser glibc_malloc memory leak

This commit is contained in:
obdev
2023-08-02 04:18:11 +00:00
committed by ob-robot
parent f3e8889af3
commit 60133dd9c8
3 changed files with 8 additions and 0 deletions

View File

@ -306,6 +306,7 @@ int ObDASUtils::generate_spatial_index_rows(
const ObSrsBoundsItem *srs_bound = NULL;
uint32_t srid = UINT32_MAX;
uint64_t rowkey_num = das_ctdef.table_param_.get_data_table().get_rowkey_column_num();
lib::ObMallocHookAttrGuard malloc_guard(lib::ObMemAttr(MTL_ID(), "S2Adapter"));
if (OB_FAIL(ObGeoTypeUtil::get_srid_from_wkb(wkb_str, srid))) {
LOG_WARN("failed to get srid", K(ret), K(wkb_str));