Commit a3cb8c68 authored by Gleb Shchepa's avatar Gleb Shchepa
Browse files

After-push commit for bug #33461 to make valgrind happy:

TABLE_LIST doesn't free Strings in its string lists
(TABLE_LIST::use_index and TABLE_liST::ignore_index), so
calling c_ptr_safe() on that Strings leads to memleaks.
OTOH "safe" c_ptr_safe() is not necessary there and we can
replace it with c_ptr().
parent b9f919e1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -985,7 +985,7 @@ bool mysql_make_view(THD *thd, File_parser *parser, TABLE_LIST *table,
  if (index_list) 
  {
    DBUG_ASSERT(index_list->head()); // should never fail
    my_error(ER_KEY_DOES_NOT_EXITS, MYF(0), index_list->head()->c_ptr_safe(),
    my_error(ER_KEY_DOES_NOT_EXITS, MYF(0), index_list->head()->c_ptr(),
             table->table_name);
    DBUG_RETURN(TRUE);
  }