MySQL 5.6 C API Developer Guide

12.2 mysql_thread_end()

void
mysql_thread_end(void)

Description

Call this function before calling pthread_exit() to free memory allocated by mysql_thread_init().

mysql_thread_end() is not invoked automatically by the client library. It must be called explicitly to avoid a memory leak.

Return Values

None.