Comment 1 for bug 1582741

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

Fixed in 5.7 by

commit 6d76033a7070ff04d4287169df918e22e1275bb9
Author: Jon Olav Hauglid <email address hidden>
Date: Tue Jun 16 14:13:05 2015 +0100

    Bug#21246964: ASAN: MEMORY LEAK IN PROCESS_ALL_TABLES()
    Bug#21247377: ASAN: MEMORY LEAK IN SHOW_VARIABLE_QUERY_EXTRACTOR / RUN_SQL_FIX_PRIVILEGE_TABLES()
    Bug#21253535: ASAN: MEMORY LEAK IN MYSQL_UPGRADE

    Fix memory leak in mysqlcheck - process_all_tables().
    Close result by calling mysql_free_result() after processing.

    Fix memory leaks related to mysql_upgrade:
    1) Allocate Instance_callback instances on stack rather than heap.
    2) Always call mysql_close() to deallocate memory.

    Also fix a valgrind warning,
    Conditional jump or move depends on uninitialised value(s)
    in Mysql::Tools::Upgrade::Program::fix_privilage_tables_error()
    (sic)