mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 03:17:20 +02:00
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.
This commit is contained in:
parent
ccd5c9c64e
commit
7e300424a3
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
{
|
||||
if (wsrep_sst_auth == value) wsrep_sst_auth = NULL;
|
||||
if (value) sst_auth_real_set (value);
|
||||
DBUG_ASSERT(wsrep_sst_auth == value);
|
||||
sst_auth_real_set (wsrep_sst_auth);
|
||||
}
|
||||
|
||||
bool wsrep_sst_donor_check (sys_var *self, THD* thd, set_var* var)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue