1
0
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:
monty@mashka.mysql.fi
2002-12-05 03:40:33 +02:00
parent 7d41cd44c6
commit fc06433a69
11 changed files with 114 additions and 99 deletions

View File

@ -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;
}