@@ -3910,7 +3910,7 @@ static int test_plugin_options(MEM_ROOT *tmp_root, struct st_plugin_int *tmp,
3910
3910
{
3911
3911
sql_print_error (" Parsing options for plugin '%s' failed." ,
3912
3912
tmp->name .str );
3913
- goto err ;
3913
+ goto err1 ;
3914
3914
}
3915
3915
/*
3916
3916
Set plugin loading policy from option value. First element in the option
@@ -3924,6 +3924,8 @@ static int test_plugin_options(MEM_ROOT *tmp_root, struct st_plugin_int *tmp,
3924
3924
disable_plugin= (plugin_load_option == PLUGIN_OFF);
3925
3925
tmp->load_option = plugin_load_option;
3926
3926
3927
+ error= 1 ;
3928
+
3927
3929
/*
3928
3930
If the plugin is disabled it should not be initialized.
3929
3931
*/
@@ -3932,9 +3934,7 @@ static int test_plugin_options(MEM_ROOT *tmp_root, struct st_plugin_int *tmp,
3932
3934
if (global_system_variables.log_warnings )
3933
3935
sql_print_information (" Plugin '%s' is disabled." ,
3934
3936
tmp->name .str );
3935
- if (opts)
3936
- my_cleanup_options (opts);
3937
- DBUG_RETURN (1 );
3937
+ goto err;
3938
3938
}
3939
3939
3940
3940
if (!my_strcasecmp (&my_charset_latin1, tmp->name .str , " NDBCLUSTER" ))
@@ -3945,8 +3945,6 @@ static int test_plugin_options(MEM_ROOT *tmp_root, struct st_plugin_int *tmp,
3945
3945
else
3946
3946
plugin_name= tmp->name ;
3947
3947
3948
- error= 1 ;
3949
-
3950
3948
if (tmp->plugin ->system_vars )
3951
3949
{
3952
3950
for (len=0 , opt= tmp->plugin ->system_vars ; *opt; len++, opt++) /* no-op */ ;
@@ -4002,7 +4000,7 @@ static int test_plugin_options(MEM_ROOT *tmp_root, struct st_plugin_int *tmp,
4002
4000
if (!tmp->ptr_backup )
4003
4001
{
4004
4002
restore_ptr_backup (tmp->nbackups , tmp_backup);
4005
- goto err ;
4003
+ goto err1 ;
4006
4004
}
4007
4005
memcpy (tmp->ptr_backup , tmp_backup, bytes);
4008
4006
}
@@ -4014,7 +4012,7 @@ static int test_plugin_options(MEM_ROOT *tmp_root, struct st_plugin_int *tmp,
4014
4012
{
4015
4013
sql_print_error (" Plugin '%s' has conflicting system variables" ,
4016
4014
tmp->name .str );
4017
- goto err ;
4015
+ goto err1 ;
4018
4016
}
4019
4017
tmp->system_vars = chain.first ;
4020
4018
}
@@ -4023,9 +4021,10 @@ static int test_plugin_options(MEM_ROOT *tmp_root, struct st_plugin_int *tmp,
4023
4021
4024
4022
DBUG_RETURN (0 );
4025
4023
4026
- err :
4024
+ err1 :
4027
4025
if (tmp_backup)
4028
4026
my_afree (tmp_backup);
4027
+ err:
4029
4028
if (opts)
4030
4029
my_cleanup_options (opts);
4031
4030
DBUG_RETURN (error);
0 commit comments