Commit 139c950f authored by unknown's avatar unknown
Browse files

bug#26346

Added some fixes for an existing memory leak and unitilialized variables, both caught by gcc.

parent 2b52bc2a
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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");