summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorunknown <dkatz/Damien@damiendev.>2007-03-23 18:15:11 -0400
committerunknown <dkatz/Damien@damiendev.>2007-03-23 18:15:11 -0400
commitdf5cc4492c7d0049f82e5b901864c994fe16578d (patch)
tree03ad105a566c4ae7ea20fb99afa32824349b0038 /client
parentb374b940997897e4db14094fc48663fafe986eb8 (diff)
downloadmariadb-git-df5cc4492c7d0049f82e5b901864c994fe16578d.tar.gz
bug#26346
Added some fixes for an existing memory leak and unitilialized variables, both caught by gcc.
Diffstat (limited to 'client')
-rw-r--r--client/mysqldump.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/client/mysqldump.c b/client/mysqldump.c
index 333bfbff1e6..effeaf68597 100644
--- a/client/mysqldump.c
+++ b/client/mysqldump.c
@@ -1546,8 +1546,9 @@ static uint dump_routines_for_db(char *db)
my_free(query_str, MYF(MY_ALLOW_ZERO_PTR));
}
} /* end of routine printing */
+ mysql_free_result(routine_res);
+
} /* end of list of routines */
- mysql_free_result(routine_res);
}
mysql_free_result(routine_list_res);
} /* end of for i (0 .. 1) */
@@ -3373,7 +3374,7 @@ char check_if_ignore_table(const char *table_name, char *table_type)
{
char result= IGNORE_NONE;
char buff[FN_REFLEN+80], show_name_buff[FN_REFLEN];
- MYSQL_RES *res;
+ MYSQL_RES *res= NULL;
MYSQL_ROW row;
DBUG_ENTER("check_if_ignore_table");