Comment 1 for bug 1604419

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

The fix is to backport

commit 9979e3e4e63d2c1bd64e931318afb1553c38c10c
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
       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.