diff options
Diffstat (limited to 'client/mysql_plugin.c')
-rw-r--r-- | client/mysql_plugin.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/client/mysql_plugin.c b/client/mysql_plugin.c index 293bd6727cf..bc9969c9b66 100644 --- a/client/mysql_plugin.c +++ b/client/mysql_plugin.c @@ -100,7 +100,8 @@ int main(int argc,char *argv[]) char operation[16]; MY_INIT(argv[0]); - plugin_data.name= 0; // initialize name + sf_leaking_memory=1; /* don't report memory leaks on early exits */ + plugin_data.name= 0; /* initialize name */ /* The following operations comprise the method for enabling or disabling @@ -654,11 +655,11 @@ static int load_plugin_data(char *plugin_name, char *config_file) } break; } - if ((line[0] == '#') || (line[0] == '\n')) // skip comment and blank lines + if ((line[0] == '#') || (line[0] == '\n')) /* skip comment and blank lines */ { continue; } - if (i == -1) // if first pass, read this line as so_name + if (i == -1) /* if first pass, read this line as so_name */ { /* Add proper file extension for soname */ strcat(line, FN_SOEXT); @@ -706,10 +707,10 @@ error: static int check_options(int argc, char **argv, char *operation) { - int i= 0; // loop counter - int num_found= 0; // number of options found (shortcut loop) - char config_file[FN_REFLEN]; // configuration file name - char plugin_name[FN_REFLEN]; // plugin name + int i= 0; /* loop counter */ + int num_found= 0; /* number of options found (shortcut loop) */ + char config_file[FN_REFLEN]; /* configuration file name */ + char plugin_name[FN_REFLEN]; /* plugin name */ /* Form prefix strings for the options. */ const char *basedir_prefix = "--basedir="; |