bug#26346

Added some fixes for an existing memory leak and unitilialized variables, both caught by gcc.
This commit is contained in:
dkatz/Damien@damiendev. 2007-03-23 18:15:11 -04:00
parent b712e2fe28
commit 53ecf4207e

View File

@ -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");