mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
MDEV-9206 : Disable malloc size callback prior to exit()
my_free() can be called for C++ static destructors after exit(), i.e after the THR_THD used by callback is already destroyed.
This commit is contained in:
parent
06cbf7c95c
commit
7d54d823a0
1 changed files with 1 additions and 0 deletions
|
@ -2071,6 +2071,7 @@ static void mysqld_exit(int exit_code)
|
|||
#ifdef WITH_PERFSCHEMA_STORAGE_ENGINE
|
||||
shutdown_performance_schema(); // we do it as late as possible
|
||||
#endif
|
||||
set_malloc_size_cb(NULL);
|
||||
cleanup_tls();
|
||||
DBUG_LEAVE;
|
||||
sd_notify(0, "STATUS=MariaDB server is down");
|
||||
|
|
Loading…
Add table
Reference in a new issue