!1176 bug fix for heap-use-after-free in check_statement_stat_level

Merge pull request !1176 from lijianfeng/master
This commit is contained in:
opengauss-bot 2021-08-05 15:06:28 +00:00 committed by Gitee
commit 0bd491d261
1 changed files with 1 additions and 1 deletions

View File

@ -129,8 +129,8 @@ bool check_statement_stat_level(char** newval, void** extra, GucSource source)
List *l = split_levels_into_list(*newval);
if (list_length(l) != STATEMENT_SQL_KIND) {
list_free_deep(l);
GUC_check_errdetail("attr num:%d is error,track_stmt_stat_level attr is 2", l->length);
list_free_deep(l);
return false;
}