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:
Vladislav Vaintroub 2015-12-02 19:30:47 +01:00
parent 06cbf7c95c
commit 7d54d823a0

View file

@ -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");