Commit b0c285bb authored by Monty's avatar Monty

Remove warning of not freed memory if mysqld aborts

Fixes warning when doing:
./sql/mariadbd --socket=/tmp/xxxx/ddd
parent 3bd10b57
......@@ -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. */
......
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