1
0
mirror of https://github.com/MariaDB/server.git synced 2025-11-21 06:21:35 +03:00

Additional fix for #12177 (stderr isn't closed)

libmysqld/lib_sql.cc:
  my_end() needs stderr to be active
This commit is contained in:
unknown
2005-07-28 17:18:24 +05:00
parent 153353fd29
commit 7e7bd6a435

View File

@@ -627,14 +627,14 @@ void STDCALL mysql_server_end()
my_free((char*) copy_arguments_ptr, MYF(MY_ALLOW_ZERO_PTR));
copy_arguments_ptr=0;
clean_up(0);
/* If library called my_init(), free memory allocated by it */
if (!org_my_init_done)
my_end(0);
if (errorlog_file)
{
fclose(errorlog_file);
errorlog_file=0;
}
/* If library called my_init(), free memory allocated by it */
if (!org_my_init_done)
my_end(0);
}
my_bool STDCALL mysql_thread_init()