void
mysql_thread_end(void)
Call this function as necessary before calling
pthread_exit() to free memory allocated by
mysql_thread_init():
For release/production builds without debugging support enabled,
mysql_thread_end()need not be called.For debug builds,
mysql_thread_init()allocates debugging information for the DBUG package (see The DBUG Package).mysql_thread_end()must be called for eachmysql_thread_init()call to avoid a memory leak.
mysql_thread_end()
is not invoked automatically by the client library.