fix typo in freeing whitelist users string. issue #27

pull/36/head
Guy Lichtman 2013-01-09 22:10:43 +02:00
parent c53dab30e3
commit e4871f5305
1 changed files with 1 additions and 1 deletions

View File

@ -1765,7 +1765,7 @@ static void whitelist_users_string_update(THD *thd,
num_whitelist_users = string_to_array(save, whitelist_users_array, MAX_NUM_USER_ELEM + 2, MAX_USER_CHAR_NUMBERS); num_whitelist_users = string_to_array(save, whitelist_users_array, MAX_NUM_USER_ELEM + 2, MAX_USER_CHAR_NUMBERS);
if (need_free_memalloc_plugin_var) if (need_free_memalloc_plugin_var)
{ {
x_free(whitelist_users_array); x_free(whitelist_users_string);
whitelist_users_string = my_strdup(*static_cast<char*const*>(save), MYF(MY_WME)); whitelist_users_string = my_strdup(*static_cast<char*const*>(save), MYF(MY_WME));
} }
else else