Commit 7e300424 authored by Sergei Golubchik's avatar Sergei Golubchik

wsrep_sst_auth: fix a memory leak

wsrep_sst_auth_init() is always invoked with value==wsrep_sst_auth.
Old code was leaking value, because it was never freed.
parent ccd5c9c6
...@@ -182,8 +182,8 @@ bool wsrep_sst_auth_update (sys_var *self, THD* thd, enum_var_type type) ...@@ -182,8 +182,8 @@ bool wsrep_sst_auth_update (sys_var *self, THD* thd, enum_var_type type)
void wsrep_sst_auth_init (const char* value) void wsrep_sst_auth_init (const char* value)
{ {
if (wsrep_sst_auth == value) wsrep_sst_auth = NULL; DBUG_ASSERT(wsrep_sst_auth == value);
if (value) sst_auth_real_set (value); sst_auth_real_set (wsrep_sst_auth);
} }
bool wsrep_sst_donor_check (sys_var *self, THD* thd, set_var* var) bool wsrep_sst_donor_check (sys_var *self, THD* thd, set_var* var)
......
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