Commit 7d54d823 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

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.
parent 06cbf7c9
......@@ -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");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment