提交 abd9aad3 编写于 作者: X xm0 提交者: LINGuanRen

fix tmp_sysvar_schema stack-use-after-scope

上级 5ff640d9
......@@ -752,8 +752,8 @@ OB_DEF_SERIALIZE(ObSysVariableSchema)
int ObSysVariableSchema::add_sysvar_schema(const ObSysVarSchema& sysvar_schema)
{
int ret = OB_SUCCESS;
ObSysVarSchema* tmp_sysvar_schema = NULL;
void* ptr = NULL;
ObSysVarSchema* tmp_sysvar_schema = NULL;
ObSysVarClassType var_id = ObSysVarFactory::find_sys_var_id_by_name(sysvar_schema.get_name(), true);
int64_t var_idx = OB_INVALID_INDEX;
if (OB_UNLIKELY(SYS_VAR_INVALID == var_id)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册