Details
-
Bug
-
Status: Open (View Workflow)
-
Trivial
-
Resolution: Unresolved
-
10.2.2
-
None
Description
mysql command client (and maybe other client utilities) leak:
in main() (line 1148) stack memory for MYSQL mysql is initialized via mysql_init(&mysql).
In case no connection was established stack memory will be initialized again in function sql_real_connect.
Even if no connection was established, there might be several memory allocations, e.g. for options/options->extensions which will be initialized again without being freed before.
How to repeat:
valgrind -v --leak-check-yes ./mysql -uroot -e"SELECT 1;"