mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-186 Client programs throw warnings about memory loss when executed with --help or alike
suppress these harmless but confusing warnings. fix the program name (MY_INIT) in mysqldump client/mysqldump.c: for backward compatibility, prefix mysqldump error messages with "mysqldump", not with the full path of the executable
This commit is contained in:
@ -317,6 +317,7 @@ int main(int argc, char **argv)
|
||||
option_string *eptr;
|
||||
|
||||
MY_INIT(argv[0]);
|
||||
sf_leaking_memory=1; /* don't report memory leaks on early exits */
|
||||
|
||||
if (load_defaults("my",load_default_groups,&argc,&argv))
|
||||
{
|
||||
@ -330,6 +331,7 @@ int main(int argc, char **argv)
|
||||
my_end(0);
|
||||
exit(1);
|
||||
}
|
||||
sf_leaking_memory=0; /* from now on we cleanup properly */
|
||||
|
||||
/* Seed the random number generator if we will be using it. */
|
||||
if (auto_generate_sql)
|
||||
|
Reference in New Issue
Block a user