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)
Fixed in 5.7 by
commit 6d76033a7070ff0 4d4287169df918e 22e1275bb9
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( ) QUERY_EXTRACTOR / RUN_SQL_ FIX_PRIVILEGE_ TABLES( )
Bug#21247377: ASAN: MEMORY LEAK IN SHOW_VARIABLE_
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, Tools:: Upgrade: :Program: :fix_privilage_ tables_ error()
Conditional jump or move depends on uninitialised value(s)
in Mysql::
(sic)