1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

Remove warning of not freed memory if mysqld aborts

Fixes warning when doing:
./sql/mariadbd --socket=/tmp/xxxx/ddd
This commit is contained in:
Monty
2023-05-22 11:27:00 +03:00
parent 3bd10b57b2
commit b0c285bb06

View File

@@ -1714,6 +1714,11 @@ static void close_connections(void)
(void) unlink(mysqld_unix_port);
}
}
/*
The following is needed to the threads stuck in
setup_connection_thread_globals()
to continue.
*/
listen_sockets.free_memory();
mysql_mutex_unlock(&LOCK_start_thread);
@@ -1999,6 +2004,7 @@ static void clean_up(bool print_message)
end_ssl();
#ifndef EMBEDDED_LIBRARY
vio_end();
listen_sockets.free_memory();
#endif /*!EMBEDDED_LIBRARY*/
#if defined(ENABLED_DEBUG_SYNC)
/* End the debug sync facility. See debug_sync.cc. */