mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Removed copying of parameters as this leads to memory leaks in embedded server.
Fixed 'not initialized' memory error.
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user