MySQL :: MySQL 8.4 C API Developer Guide :: 8.2.1 mysql_thread_end() (original) (raw)
Description
Call this function as necessary before callingpthread_exit()
to free memory allocated bymysql_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 (seeThe 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.