[FIX] memory leak of plan cache

This commit is contained in:
obdev
2022-12-06 15:38:15 +00:00
committed by ob-robot
parent 754dba3795
commit 4e11e7bc42
3 changed files with 3 additions and 2 deletions

View File

@ -71,7 +71,7 @@ ObResultSet::~ObResultSet()
inner_exec_ctx_->~ObExecContext();
inner_exec_ctx_ = NULL;
}
ObPlanCache *pc = my_session_.get_plan_cache();
ObPlanCache *pc = my_session_.get_plan_cache_directly();
if (OB_NOT_NULL(pc)) {
cache_obj_guard_.force_early_release(pc);
}