fix runtime warning of freeing null ptr

parent e07d563a
...@@ -3979,10 +3979,12 @@ static void store_schema_partitions_record(THD *thd, TABLE *schema_table, ...@@ -3979,10 +3979,12 @@ static void store_schema_partitions_record(THD *thd, TABLE *schema_table,
{ {
char *ts= showing_table->file->get_tablespace_name(thd); char *ts= showing_table->file->get_tablespace_name(thd);
if(ts) if(ts)
{
table->field[24]->store(ts, strlen(ts), cs); table->field[24]->store(ts, strlen(ts), cs);
my_free(ts, MYF(0));
}
else else
table->field[24]->set_null(); table->field[24]->set_null();
my_free(ts, MYF(0));
} }
} }
return; return;
......
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