diff options
Diffstat (limited to 'sql/sql_udf.cc')
-rw-r--r-- | sql/sql_udf.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/sql_udf.cc b/sql/sql_udf.cc index 937d1e52656..8ac313e1127 100644 --- a/sql/sql_udf.cc +++ b/sql/sql_udf.cc @@ -229,6 +229,11 @@ void udf_free() } hash_free(&udf_hash); free_root(&mem,MYF(0)); + if (initialized) + { + initialized= 0; + pthread_mutex_destroy(&THR_LOCK_udf); + } DBUG_VOID_RETURN; } |