summaryrefslogtreecommitdiff
path: root/sql/sql_table.cc
diff options
context:
space:
mode:
authormonty@mashka.mysql.fi <>2003-01-16 20:47:46 +0200
committermonty@mashka.mysql.fi <>2003-01-16 20:47:46 +0200
commitf4b950df960a96a06b4a97fe1f4cee22e52e7d5d (patch)
treee1fdb60db4adfe4fafddb5d063b62fbb7cff6326 /sql/sql_table.cc
parentc16e908a2bb32c4ae945b0d0856a92ae309c8514 (diff)
parent6250c1d974877fc1a678c3438fc9cc5b95222089 (diff)
downloadmariadb-git-f4b950df960a96a06b4a97fe1f4cee22e52e7d5d.tar.gz
Merge with 3.23
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r--sql/sql_table.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc
index 266bf8aefa9..c04b4871b4d 100644
--- a/sql/sql_table.cc
+++ b/sql/sql_table.cc
@@ -1771,12 +1771,9 @@ int mysql_alter_table(THD *thd,char *new_db, char *new_name,
/* We changed a temporary table */
if (error)
{
- /*
- * The following function call will also free a
- * new_table pointer.
- * Therefore, here new_table pointer is not free'd as it is
- * free'd in close_temporary() which is called by by the
- * close_temporary_table() function.
+ /*
+ The following function call will free the new_table pointer,
+ in close_temporary_table(), so we can safely directly jump to err
*/
close_temporary_table(thd,new_db,tmp_name);
goto err;