[to #47336750] fix memory leak of package variable serialize

This commit is contained in:
obdev
2023-02-15 04:11:44 +00:00
committed by ob-robot
parent adce321d1b
commit 2b5d89226f
3 changed files with 7 additions and 4 deletions

View File

@ -758,7 +758,7 @@ int ObPLPackageManager::set_package_var_val(const ObPLResolveCtx &resolve_ctx,
ret = OB_ERR_NUMERIC_OR_VALUE_ERROR;
LOG_WARN("not null check violated", K(var->is_not_null()), K(var_val.is_null()), K(ret));
}
OZ (package_state->set_package_var_val(var_idx, new_var_val));
OZ (package_state->set_package_var_val(var_idx, new_var_val, !need_deserialize));
if (!need_deserialize) {
OZ (package_state->update_changed_vars(var_idx));
}