summaryrefslogtreecommitdiff
path: root/sql/sql_table.cc
diff options
context:
space:
mode:
authorunknown <monty@mashka.mysql.fi>2002-12-26 16:35:15 +0200
committerunknown <monty@mashka.mysql.fi>2002-12-26 16:35:15 +0200
commitf6cf1d07377d637649877f38f17aa06e4ccd751e (patch)
treeb2b844f2fb1f0faf55bd26be0893b190eaa6cecb /sql/sql_table.cc
parenta3c5ad17472db208c676bbcb59a41fd7fe12b078 (diff)
downloadmariadb-git-f6cf1d07377d637649877f38f17aa06e4ccd751e.tar.gz
Updated comment
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 e2fa8bc00d5..4691c2fd494 100644
--- a/sql/sql_table.cc
+++ b/sql/sql_table.cc
@@ -1528,12 +1528,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;