Commit 92162e6d authored by Daniele Sciascia's avatar Daniele Sciascia Committed by Nirbhay Choubey

MW-175 Fix definitively lost memory in wsrep_get_params

parent 137af55c
......@@ -1228,25 +1228,6 @@
fun:dlopen@@GLIBC_2.2.5
}
{
GitHub codership/mysql-wsrep#176
Memcheck:Leak
fun:_Z16wsrep_get_paramsRKN6galera10ReplicatorE
fun:galera_parameters_get
fun:_ZL24refresh_provider_optionsv
fun:_Z29wsrep_provider_options_updateP7sys_varP3THD13enum_var_type
fun:_ZN7sys_var6updateEP3THDP7set_var
fun:_ZN7set_var6updateEP3THD
fun:_Z17sql_set_variablesP3THDP4ListI12set_var_baseE
fun:_Z21mysql_execute_commandP3THD
fun:_Z11mysql_parseP3THDPcjP12Parser_state
fun:_ZL17wsrep_mysql_parseP3THDPcjP12Parser_state
fun:_Z16dispatch_command19enum_server_commandP3THDPcj
fun:_Z10do_commandP3THD
fun:_Z24do_handle_one_connectionP3THD
fun:handle_one_connection
}
{
GitHub codership/galera#330
Memcheck:Leak
......@@ -1340,31 +1321,6 @@ g codership/mysql-wsrep/issues#176
fun:_Z16wsrep_set_paramsRN6galera10ReplicatorEPKc
}
{
codership/mysql-wsrep/issues#176
Memcheck:Leak
fun:_Z16wsrep_get_paramsRKN6galera10ReplicatorE
}
{
codership/mysql-wsrep/issues#176
Memcheck:Leak
fun:_Z16wsrep_get_paramsRKN6galera10ReplicatorE
fun:galera_parameters_get
fun:_ZL24refresh_provider_optionsv
fun:_Z21wsrep_provider_updateP7sys_varP3THD13enum_var_type
fun:_ZN7sys_var6updateEP3THDP7set_var
fun:_ZN7set_var6updateEP3THD
fun:_Z17sql_set_variablesP3THDP4ListI12set_var_baseE
fun:_Z21mysql_execute_commandP3THD
fun:_Z11mysql_parseP3THDPcjP12Parser_state
fun:_ZL17wsrep_mysql_parseP3THDPcjP12Parser_state
fun:_Z16dispatch_command19enum_server_commandP3THDPcj
fun:_Z10do_commandP3THD
fun:_Z24do_handle_one_connectionP3THD
fun:handle_one_connection
}
{
codership/mysql-wsrep/issues#176
Memcheck:Leak
......@@ -1475,72 +1431,6 @@ g codership/mysql-wsrep/issues#176
fun:_Z24do_handle_one_connectionP3THD
}
{
codership/mysql-wsrep/issues#176
Memcheck:Leak
match-leak-kinds: possible
fun:malloc
fun:strdup
fun:_Z16wsrep_get_paramsRKN6galera10ReplicatorE
fun:galera_parameters_get
fun:_ZL24refresh_provider_optionsv
fun:_Z29wsrep_provider_options_updateP7sys_varP3THD13enum_var_type
fun:_ZN7sys_var6updateEP3THDP7set_var
fun:_ZN7set_var6updateEP3THD
fun:_Z17sql_set_variablesP3THDP4ListI12set_var_baseE
fun:_Z21mysql_execute_commandP3THD
fun:_Z11mysql_parseP3THDPcjP12Parser_state
fun:_ZL17wsrep_mysql_parseP3THDPcjP12Parser_state
fun:_Z16dispatch_command19enum_server_commandP3THDPcj
fun:_Z10do_commandP3THD
fun:_Z24do_handle_one_connectionP3THD
fun:handle_one_connection
}
{
codership/mysql-wsrep/issues#176
Memcheck:Leak
match-leak-kinds: definite
fun:malloc
fun:strdup
fun:_Z16wsrep_get_paramsRKN6galera10ReplicatorE
fun:galera_parameters_get
fun:_ZL24refresh_provider_optionsv
fun:_Z29wsrep_provider_options_updateP7sys_varP3THD13enum_var_type
fun:_ZN7sys_var6updateEP3THDP7set_var
fun:_ZN7set_var6updateEP3THD
fun:_Z17sql_set_variablesP3THDP4ListI12set_var_baseE
fun:_Z21mysql_execute_commandP3THD
fun:_Z11mysql_parseP3THDPcjP12Parser_state
fun:_ZL17wsrep_mysql_parseP3THDPcjP12Parser_state
fun:_Z16dispatch_command19enum_server_commandP3THDPcj
fun:_Z10do_commandP3THD
fun:_Z24do_handle_one_connectionP3THD
fun:handle_one_connection
}
{
codership/mysql-wsrep/issues#176
Memcheck:Leak
match-leak-kinds: definite
fun:malloc
fun:strdup
fun:_Z16wsrep_get_paramsRKN6galera10ReplicatorE
fun:galera_parameters_get
fun:_ZL24refresh_provider_optionsv
fun:_Z21wsrep_provider_updateP7sys_varP3THD13enum_var_type
fun:_ZN7sys_var6updateEP3THDP7set_var
fun:_ZN7set_var6updateEP3THD
fun:_Z17sql_set_variablesP3THDP4ListI12set_var_baseE
fun:_Z21mysql_execute_commandP3THD
fun:_Z11mysql_parseP3THDPcjP12Parser_state
fun:_ZL17wsrep_mysql_parseP3THDPcjP12Parser_state
fun:_Z16dispatch_command19enum_server_commandP3THDPcj
fun:_Z10do_commandP3THD
fun:_Z24do_handle_one_connectionP3THD
fun:handle_one_connection
}
{
codership/galera#331
Memcheck:Leak
......
......@@ -216,6 +216,7 @@ static bool refresh_provider_options()
get_provider_option_value(wsrep_provider_options,
(char*)"repl.max_ws_size",
&wsrep_max_ws_size);
free(opts);
}
else
{
......
......@@ -86,7 +86,7 @@ static wsrep_status_t dummy_options_set(
static char* dummy_options_get (wsrep_t* w)
{
WSREP_DBUG_ENTER(w);
return WSREP_DUMMY(w)->options;
return strdup(WSREP_DUMMY(w)->options);
}
static wsrep_status_t dummy_connect(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment