1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

fix runtime warning of freeing null ptr

This commit is contained in:
stewart@willster.(none)
2006-11-08 17:09:16 +11:00
parent e07d563a4d
commit aff2347321

View File

@ -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;