1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +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

@ -32,6 +32,7 @@
#include <nisam.h>
#include <thr_alarm.h>
#include <ft_global.h>
#include <assert.h>
#ifndef DBUG_OFF
#define ONE_THREAD
@ -2091,6 +2092,7 @@ int main(int argc, char **argv)
(void) grant_init((THD*) 0);
init_max_user_conn();
init_update_queries();
DBUG_ASSERT(current_thd == 0);
#ifdef HAVE_DLOPEN
if (!opt_noacl)
@ -2099,6 +2101,7 @@ int main(int argc, char **argv)
/* init_slave() must be called after the thread keys are created */
init_slave();
DBUG_ASSERT(current_thd == 0);
if (opt_bin_log && !server_id)
{
server_id= !master_host ? 1 : 2;