[CP] [Bugfix] fix memory leak in session pool
This commit is contained in:
@ -670,6 +670,12 @@ int ObTableApiSessNode::init()
|
|||||||
last_active_ts_ = ObTimeUtility::fast_current_time();
|
last_active_ts_ = ObTimeUtility::fast_current_time();
|
||||||
is_inited_ = true;
|
is_inited_ = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (OB_FAIL(ret) && OB_NOT_NULL(mem_ctx_)) {
|
||||||
|
DESTROY_CONTEXT(mem_ctx_);
|
||||||
|
mem_ctx_ = nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|||||||
Reference in New Issue
Block a user