MySQL 9.4 C API Developer Guide / ... / C API Basic Interface / C API Basic Function Descriptions / mysql_free_ssl_session_data()
bool mysql_free_ssl_session_data(MYSQL *, void *data)mysql_free_ssl_session_data() disposes of a session data handle that was obtained previously by callingmysql_get_ssl_session_data(). It frees the memory that was allocated. Never call this function for any session that is still in use or if the handle was not obtained withmysql_get_ssl_session_data(). The call you make tomysql_get_ssl_session_data() should match exactly the call tomysql_free_ssl_session_data().
Do not attempt to use the session data handle after freeing it.