to issue<47065195>:fix memory leak of pl temp when using udf in sql stmt
This commit is contained in:
@ -522,6 +522,7 @@ int ObExprUDF::eval_udf(const ObExpr &expr, ObEvalCtx &ctx, ObDatum &res)
|
||||
OZ (ctx.exec_ctx_.get_pl_ctx()->add(result));
|
||||
} else {
|
||||
OZ (deep_copy_obj(alloc, tmp_result, result));
|
||||
OX (ctx.exec_ctx_.get_pl_ctx()->reset_obj());
|
||||
}
|
||||
} else {
|
||||
result = tmp_result;
|
||||
|
||||
Reference in New Issue
Block a user