diff options
author | unknown <knielsen@knielsen-hq.org> | 2010-07-09 13:39:19 +0200 |
---|---|---|
committer | unknown <knielsen@knielsen-hq.org> | 2010-07-09 13:39:19 +0200 |
commit | 2be1a25faa579282b441f42e525b7e0f05fb1f5f (patch) | |
tree | 32115114a158ac13b7c806276793f537cd8eea77 /client | |
parent | b95bd9f5e2040609e2269772ec4ed043d0036cf4 (diff) | |
parent | ee45ab069478f532488befac0464c780c2f46f45 (diff) | |
download | mariadb-git-2be1a25faa579282b441f42e525b7e0f05fb1f5f.tar.gz |
Automerge MariaDB 5.1->5.2.
Diffstat (limited to 'client')
-rwxr-xr-x | client/CMakeLists.txt | 2 | ||||
-rw-r--r-- | client/mysqldump.c | 8 | ||||
-rw-r--r-- | client/mysqltest.cc | 2 |
3 files changed, 9 insertions, 3 deletions
diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index 99d67acbc5b..b22a83faff9 100755 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt @@ -85,3 +85,5 @@ ENDIF(EMBED_MANIFESTS) ADD_DEFINITIONS(-DHAVE_DLOPEN) +INSTALL(TARGETS mysql mysqltest mysqlcheck mysqldump mysqlimport mysql_upgrade mysqlshow + mysqlbinlog mysqladmin mysqlslap echo DESTINATION bin COMPONENT runtime) diff --git a/client/mysqldump.c b/client/mysqldump.c index 212baca6be8..a9fe3f8e1fa 100644 --- a/client/mysqldump.c +++ b/client/mysqldump.c @@ -1441,6 +1441,7 @@ static void free_resources() if (md_result_file && md_result_file != stdout) my_fclose(md_result_file, MYF(0)); my_free(opt_password, MYF(MY_ALLOW_ZERO_PTR)); + my_free(current_host, MYF(MY_ALLOW_ZERO_PTR)); if (hash_inited(&ignore_table)) hash_free(&ignore_table); if (extended_insert) @@ -4222,7 +4223,7 @@ static char *get_actual_table_name(const char *old_table_name, MEM_ROOT *root) } mysql_free_result(table_res); } - DBUG_PRINT("exit", ("new_table_name: %s", name)); + DBUG_PRINT("exit", ("new_table_name: %s", val_or_null(name))); DBUG_RETURN(name); } @@ -4818,6 +4819,7 @@ static my_bool get_view_structure(char *table, char* db) field= mysql_fetch_field_direct(table_res, 0); if (strcmp(field->name, "View") != 0) { + mysql_free_result(table_res); switch_character_set_results(mysql, default_charset); verbose_msg("-- It's base table, skipped\n"); DBUG_RETURN(0); @@ -4827,8 +4829,10 @@ static my_bool get_view_structure(char *table, char* db) if (path) { if (!(sql_file= open_sql_file_for_table(table, O_WRONLY))) + { + mysql_free_result(table_res); DBUG_RETURN(1); - + } write_header(sql_file, db); } diff --git a/client/mysqltest.cc b/client/mysqltest.cc index e0c5cbddbad..bc6582156fa 100644 --- a/client/mysqltest.cc +++ b/client/mysqltest.cc @@ -542,7 +542,7 @@ public: { DBUG_ENTER("LogFile::open"); DBUG_PRINT("enter", ("dir: '%s', name: '%s'", - dir, name)); + val_or_null(dir), val_or_null(name))); if (!name) { m_file= stdout; |