fix memory leak when forall batch execute

This commit is contained in:
obdev
2022-11-24 08:05:51 +00:00
committed by wangzelin.wzl
parent f32896cc2f
commit 97b7209e61
4 changed files with 25 additions and 16 deletions

View File

@ -536,9 +536,9 @@ public:
int64_t query_num,
int64_t param_num,
ParamStore &param_store);
static int transform_pl_ext_type(ParamStore &src, int64_t array_binding_size, ObIAllocator &alloc, ParamStore *&dst);
static int transform_pl_ext_type(ParamStore &src, int64_t array_binding_size, ObIAllocator &alloc, ParamStore *&dst, bool is_forall = false);
static int get_one_group_params(int64_t &pos, ParamStore &src, ParamStore &obj_params);
static int copy_params_to_array_params(int64_t query_pos, ParamStore &src, ParamStore &dst);
static int copy_params_to_array_params(int64_t query_pos, ParamStore &src, ParamStore &dst, ObIAllocator &alloc, bool is_forall = false);
static int init_elements_info(ParamStore &src, ParamStore &dst);
/*-----------------------
* Observer no longer depends on Linux NTP service to adjust server time since 4.0.