bug#26346

Added some fixes for an existing memory leak and unitilialized variables, both caught by gcc.
parent b712e2fe
......@@ -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 */
} /* end of list of routines */
mysql_free_result(routine_res);
} /* end of list of routines */
}
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");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment