提交 967936da 编写于 作者: O obdev 提交者: ob-robot

fix s2adapter leak

上级 4cadbd4c
......@@ -8799,7 +8799,7 @@ int ObQueryRange::get_geo_intersects_keypart(uint32_t input_srid,
ObKeyPart *out_key_part)
{
INIT_SUCC(ret);
common::ObArenaAllocator tmp_alloc;
common::ObArenaAllocator tmp_alloc(lib::ObLabel("GisIndex"));
ObS2Cellids cells;
ObS2Cellids cells_with_ancestors;
ObSpatialMBR mbr_filter(op_type);
......@@ -8936,6 +8936,9 @@ int ObQueryRange::get_geo_intersects_keypart(uint32_t input_srid,
}
}
}
if (OB_NOT_NULL(s2object)) {
s2object->~ObS2Adapter();
}
return ret;
}
......@@ -9113,6 +9116,9 @@ int ObQueryRange::get_geo_coveredby_keypart(uint32_t input_srid,
}
}
}
if (OB_NOT_NULL(s2object)) {
s2object->~ObS2Adapter();
}
return ret;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册