@@ -1205,7 +1205,7 @@ int main(int argc,char *argv[])
12051205 strncmp (link_name, " /dev/null" , 10 ) == 0 )
12061206 {
12071207 /* The .mysql_history file is a symlink to /dev/null, don't use it */
1208- my_free (histfile, MYF (MY_ALLOW_ZERO_PTR) );
1208+ my_free (histfile);
12091209 histfile= 0 ;
12101210 }
12111211 }
@@ -1266,23 +1266,23 @@ sig_handler mysql_end(int sig)
12661266 glob_buffer.free ();
12671267 old_buffer.free ();
12681268 processed_prompt.free ();
1269- my_free (server_version, MYF (MY_ALLOW_ZERO_PTR) );
1270- my_free (opt_password, MYF (MY_ALLOW_ZERO_PTR) );
1271- my_free (opt_mysql_unix_port, MYF (MY_ALLOW_ZERO_PTR) );
1272- my_free (histfile, MYF (MY_ALLOW_ZERO_PTR) );
1273- my_free (histfile_tmp, MYF (MY_ALLOW_ZERO_PTR) );
1274- my_free (current_db, MYF (MY_ALLOW_ZERO_PTR) );
1275- my_free (current_host, MYF (MY_ALLOW_ZERO_PTR) );
1276- my_free (current_user, MYF (MY_ALLOW_ZERO_PTR) );
1277- my_free (full_username, MYF (MY_ALLOW_ZERO_PTR) );
1278- my_free (part_username, MYF (MY_ALLOW_ZERO_PTR) );
1279- my_free (default_prompt, MYF (MY_ALLOW_ZERO_PTR) );
1269+ my_free (server_version);
1270+ my_free (opt_password);
1271+ my_free (opt_mysql_unix_port);
1272+ my_free (histfile);
1273+ my_free (histfile_tmp);
1274+ my_free (current_db);
1275+ my_free (current_host);
1276+ my_free (current_user);
1277+ my_free (full_username);
1278+ my_free (part_username);
1279+ my_free (default_prompt);
12801280#ifdef HAVE_SMEM
1281- my_free (shared_memory_base_name, MYF (MY_ALLOW_ZERO_PTR) );
1281+ my_free (shared_memory_base_name);
12821282#endif
1283- my_free (current_prompt, MYF (MY_ALLOW_ZERO_PTR) );
1283+ my_free (current_prompt);
12841284 while (embedded_server_arg_count > 1 )
1285- my_free (embedded_server_args[--embedded_server_arg_count], MYF ( 0 ) );
1285+ my_free (embedded_server_args[--embedded_server_arg_count]);
12861286 mysql_server_end ();
12871287 free_defaults (defaults_argv);
12881288 my_end (my_end_arg);
@@ -1736,7 +1736,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
17361736 if (argument)
17371737 {
17381738 char *start= argument;
1739- my_free (opt_password, MYF (MY_ALLOW_ZERO_PTR) );
1739+ my_free (opt_password);
17401740 opt_password= my_strdup (argument, MYF (MY_FAE));
17411741 while (*argument) *argument++= ' x' ; // Destroy argument
17421742 if (*start)
@@ -1833,7 +1833,7 @@ static int get_options(int argc, char **argv)
18331833 if (argc == 1 )
18341834 {
18351835 skip_updates= 0 ;
1836- my_free (current_db, MYF (MY_ALLOW_ZERO_PTR) );
1836+ my_free (current_db);
18371837 current_db= my_strdup (*argv, MYF (MY_WME));
18381838 }
18391839 if (tty_password)
@@ -2731,7 +2731,7 @@ static void get_current_db()
27312731{
27322732 MYSQL_RES *res;
27332733
2734- my_free (current_db, MYF (MY_ALLOW_ZERO_PTR) );
2734+ my_free (current_db);
27352735 current_db= NULL ;
27362736 /* In case of error below current_db will be NULL */
27372737 if (!mysql_query (&mysql, " SELECT DATABASE()" ) &&
@@ -4023,12 +4023,12 @@ com_connect(String *buffer, char *line)
40234023 tmp= get_arg (buff, 0 );
40244024 if (tmp && *tmp)
40254025 {
4026- my_free (current_db, MYF (MY_ALLOW_ZERO_PTR) );
4026+ my_free (current_db);
40274027 current_db= my_strdup (tmp, MYF (MY_WME));
40284028 tmp= get_arg (buff, 1 );
40294029 if (tmp)
40304030 {
4031- my_free (current_host, MYF (MY_ALLOW_ZERO_PTR) );
4031+ my_free (current_host);
40324032 current_host=my_strdup (tmp,MYF (MY_WME));
40334033 }
40344034 }
@@ -4200,7 +4200,7 @@ com_use(String *buffer __attribute__((unused)), char *line)
42004200 if (mysql_select_db (&mysql,tmp))
42014201 return put_error (&mysql);
42024202 }
4203- my_free (current_db, MYF (MY_ALLOW_ZERO_PTR) );
4203+ my_free (current_db);
42044204 current_db=my_strdup (tmp,MYF (MY_WME));
42054205#ifdef HAVE_READLINE
42064206 if (select_db > 1 )
@@ -4952,8 +4952,8 @@ static void add_int_to_prompt(int toadd)
49524952
49534953static void init_username ()
49544954{
4955- my_free (full_username, MYF (MY_ALLOW_ZERO_PTR) );
4956- my_free (part_username, MYF (MY_ALLOW_ZERO_PTR) );
4955+ my_free (full_username);
4956+ my_free (part_username);
49574957
49584958 MYSQL_RES *result;
49594959 LINT_INIT (result);
@@ -4971,7 +4971,7 @@ static int com_prompt(String *buffer, char *line)
49714971{
49724972 char *ptr=strchr (line, ' ' );
49734973 prompt_counter = 0 ;
4974- my_free (current_prompt, MYF (MY_ALLOW_ZERO_PTR) );
4974+ my_free (current_prompt);
49754975 current_prompt=my_strdup (ptr ? ptr+1 : default_prompt,MYF (MY_WME));
49764976 if (!ptr)
49774977 tee_fprintf (stdout, " Returning to default PROMPT of %s\n " , default_prompt);
0 commit comments