Skip to content

Commit

Permalink
Remove warning of not freed memory if mysqld aborts
Browse files Browse the repository at this point in the history
Fixes warning when doing:
./sql/mariadbd --socket=/tmp/xxxx/ddd
  • Loading branch information
montywi committed May 22, 2023
1 parent 3bd10b5 commit b0c285b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sql/mysqld.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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. */
Expand Down

0 comments on commit b0c285b

Please sign in to comment.