MySQL 5.6 C API Developer Guide
void mysql_server_end(void)
This function finalizes the MySQL library, which should be
done when you are done using the library. However,
mysql_server_end()
is
deprecated and
mysql_library_end()
should be
used instead. See Section 7.39, “mysql_library_end()”.
To avoid memory leaks after the application is done using
the library (for example, after closing the connection to
the server), be sure to call
mysql_server_end()
(or
mysql_library_end()
)
explicitly. This enables memory managment to be performed to
clean up and free resources used by the library.