diff options
author | Sergei Golubchik <sergii@pisem.net> | 2012-03-23 10:53:25 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2012-03-23 10:53:25 +0100 |
commit | 92e2b80c76dfeed2bb81775bc5c28aaef9f3f05a (patch) | |
tree | 52037cade5fb8d4d098dcfcd728b6b04dc506c2d /client/mysqlslap.c | |
parent | 02d982a90b830ce373bae91c6113afc65e2a970e (diff) | |
download | mariadb-git-92e2b80c76dfeed2bb81775bc5c28aaef9f3f05a.tar.gz |
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
Diffstat (limited to 'client/mysqlslap.c')
-rw-r--r-- | client/mysqlslap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/client/mysqlslap.c b/client/mysqlslap.c index 955a31c1872..27c26cf9b64 100644 --- a/client/mysqlslap.c +++ b/client/mysqlslap.c @@ -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) |