Bug#17933308 - VALGRIND: MEMORY LEAK IN MYSQL_OPTIONS() AND MYSQL_LOAD_PLUGIN_V()
Two leaks fixed:
1. Freeing memory allocated for mysql->options.extension->server_public_key_path inside mysql_close_free_options() function.
2. Freeing memory allocated inside a dummy MYSQL connection handle used
by mysql_client_plugin_init() by calling mysql_close_free() at the
end of the function.
Functions mysql_close_free() and mysql_close_free_options() are made available outside the sql-common/client.c file. Also, mysql_close_free() is updated to free memory used by mysql->extension.
The fix is to backport
commit 9979e3e4e63d2c1 bd64e931318afb1 553c38c10c
Author: Rafal Somla <email address hidden>
Date: Mon Mar 10 18:45:27 2014 +0100
Bug#17933308 - VALGRIND: MEMORY LEAK IN MYSQL_OPTIONS() AND MYSQL_LOAD_ PLUGIN_ V()
Two leaks fixed:
1. Freeing memory allocated for
mysql-> options. extension- >server_ public_ key_path inside
mysql_close_ free_options( ) function.
2. Freeing memory allocated inside a dummy MYSQL connection handle used plugin_ init() by calling mysql_close_free() at the
by mysql_client_
end of the function.
Functions mysql_close_free() and mysql_close_ free_options( ) are made available outside the sql-common/client.c file. Also, mysql_close_free() is updated to free memory used by mysql->extension.