1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-5321 Calling mysql_library_end accesses freed memory; dumps memory to display.

Don't call the vio_end() in the clean_up() in EMBEDDED mode.
        Call vio_end() before the end_embedded_server().
This commit is contained in:
Alexey Botchkov
2013-11-25 21:38:01 +04:00
parent 1297a9ef19
commit fb2de58294
2 changed files with 4 additions and 2 deletions

View File

@ -204,11 +204,11 @@ void STDCALL mysql_server_end()
mysql_client_plugin_deinit();
finish_client_errs();
vio_end();
#ifdef EMBEDDED_LIBRARY
end_embedded_server();
#endif
finish_client_errs();
vio_end();
/* If library called my_init(), free memory allocated by it */
if (!org_my_init_done)