bug#26346
Added some fixes for an existing memory leak and unitilialized variables, both caught by gcc.
This commit is contained in:
parent
b712e2fe28
commit
53ecf4207e
@ -1546,8 +1546,9 @@ static uint dump_routines_for_db(char *db)
|
|||||||
my_free(query_str, MYF(MY_ALLOW_ZERO_PTR));
|
my_free(query_str, MYF(MY_ALLOW_ZERO_PTR));
|
||||||
}
|
}
|
||||||
} /* end of routine printing */
|
} /* end of routine printing */
|
||||||
|
mysql_free_result(routine_res);
|
||||||
|
|
||||||
} /* end of list of routines */
|
} /* end of list of routines */
|
||||||
mysql_free_result(routine_res);
|
|
||||||
}
|
}
|
||||||
mysql_free_result(routine_list_res);
|
mysql_free_result(routine_list_res);
|
||||||
} /* end of for i (0 .. 1) */
|
} /* 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 result= IGNORE_NONE;
|
||||||
char buff[FN_REFLEN+80], show_name_buff[FN_REFLEN];
|
char buff[FN_REFLEN+80], show_name_buff[FN_REFLEN];
|
||||||
MYSQL_RES *res;
|
MYSQL_RES *res= NULL;
|
||||||
MYSQL_ROW row;
|
MYSQL_ROW row;
|
||||||
DBUG_ENTER("check_if_ignore_table");
|
DBUG_ENTER("check_if_ignore_table");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user