Commit a7df038d authored by monty@mysql.com's avatar monty@mysql.com

Add back free that I accidently removed in last patch

parent eff69e73
...@@ -1179,6 +1179,7 @@ bool mysql_change_db(THD *thd, const char *name, bool no_access_check) ...@@ -1179,6 +1179,7 @@ bool mysql_change_db(THD *thd, const char *name, bool no_access_check)
x_free(thd->db); x_free(thd->db);
if (dbname && dbname[0] == 0) if (dbname && dbname[0] == 0)
{ {
my_free(dbname, MYF(0));
thd->db= NULL; thd->db= NULL;
thd->db_length= 0; thd->db_length= 0;
} }
......
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