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/mysqlimport.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/mysqlimport.c')
-rw-r--r-- | client/mysqlimport.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/client/mysqlimport.c b/client/mysqlimport.c index e721b841f06..e4e34f786d7 100644 --- a/client/mysqlimport.c +++ b/client/mysqlimport.c @@ -613,6 +613,7 @@ int main(int argc, char **argv) { int error=0; 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)) return 1; @@ -623,6 +624,7 @@ int main(int argc, char **argv) free_defaults(argv_to_free); return(1); } + sf_leaking_memory=0; /* from now on we cleanup properly */ #ifdef HAVE_LIBPTHREAD if (opt_use_threads && !lock_tables) |