diff --git a/sql/sql_udf.cc b/sql/sql_udf.cc index c8aeb00..06bea28 100644 --- a/sql/sql_udf.cc +++ b/sql/sql_udf.cc @@ -244,7 +244,7 @@ void udf_read_functions_table() { if (open_trans_system_tables_for_read(new_thd, &tables)) { DBUG_PRINT("error", ("Can't open udf table")); LogErr(ERROR_LEVEL, ER_UDF_CANT_OPEN_FUNCTION_TABLE); - goto end; + goto end_without_close; } table = tables.table; @@ -333,6 +333,8 @@ void udf_read_functions_table() { end: close_trans_system_tables(new_thd); + +end_without_close: delete new_thd; }