diff options
author | monty@mashka.mysql.fi <> | 2002-12-05 03:40:33 +0200 |
---|---|---|
committer | monty@mashka.mysql.fi <> | 2002-12-05 03:40:33 +0200 |
commit | fc06433a69113a914b58f5bb78b98b39f3dce4b8 (patch) | |
tree | acbe11728f20cce01476a8928088773d8016fe76 /sql/sql_udf.cc | |
parent | 7d41cd44c69fd23f49de52d6e436d3f821a68ca3 (diff) | |
download | mariadb-git-fc06433a69113a914b58f5bb78b98b39f3dce4b8.tar.gz |
Removed copying of parameters as this leads to memory leaks in embedded server.
Fixed 'not initialized' memory error.
Diffstat (limited to 'sql/sql_udf.cc')
-rw-r--r-- | sql/sql_udf.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_udf.cc b/sql/sql_udf.cc index 420ec67f0c5..937d1e52656 100644 --- a/sql/sql_udf.cc +++ b/sql/sql_udf.cc @@ -202,6 +202,8 @@ void udf_init() new_thd->version--; // Force close to free memory close_thread_tables(new_thd); delete new_thd; + /* Remember that we don't have a THD */ + my_pthread_setspecific_ptr(THR_THD, 0); DBUG_VOID_RETURN; } |