Commit 42c2a2cb authored by unknown's avatar unknown
Browse files

fix runtime warning of freeing null ptr


sql/sql_show.cc:
  fix warning during mysql-test-run of freeing null pointer
parent b1a3c4e7
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3979,10 +3979,12 @@ static void store_schema_partitions_record(THD *thd, TABLE *schema_table,
    {
      char *ts= showing_table->file->get_tablespace_name(thd);
      if(ts)
      {
        table->field[24]->store(ts, strlen(ts), cs);
        my_free(ts, MYF(0));
      }
      else
        table->field[24]->set_null();
      my_free(ts, MYF(0));
    }
  }
  return;