1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

A fix for double free'd pointer bug ...

BitKeeper/etc/ignore:
  Added innobase/stamp-h1 stamp-h1 to the ignore list
This commit is contained in:
unknown
2002-12-04 20:51:18 +02:00
parent 91e1b1b11d
commit 76c982ea92
2 changed files with 9 additions and 1 deletions

View File

@@ -1528,8 +1528,14 @@ 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.
*/
close_temporary_table(thd,new_db,tmp_name);
my_free((gptr) new_table,MYF(0));
goto err;
}
/* Close lock if this is a transactional table */