提交 cc0f8858 编写于 作者: S stdliu 提交者: linzhigang.lzg

[CP] Fix dll udf attribute invalid memory bug

上级 7c054a95
......@@ -173,7 +173,10 @@ int ObExprDllUdf::init_udf(const common::ObIArray<ObRawExpr*>& param_exprs)
}
}
if (OB_SUCC(ret)) {
if (OB_FAIL(udf_attributes_.push_back(expr->get_expr_name()))) {
ObString str;
if (OB_FAIL(ob_write_string(allocator_, expr->get_expr_name(), str))) {
LOG_WARN("copy string failed", K(ret));
} else if (OB_FAIL(udf_attributes_.push_back(str))) {
LOG_WARN("failed to push back", K(ret));
} else if (OB_FAIL(udf_attributes_types_.push_back(expr->get_result_type()))) {
LOG_WARN("failed to push back", K(ret));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册