summaryrefslogtreecommitdiff
path: root/storage/innobase
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@oracle.com>2010-10-11 11:01:47 +0300
committerMarko Mäkelä <marko.makela@oracle.com>2010-10-11 11:01:47 +0300
commitdf29195345758a35a2968e85f03cc1e2a0870d76 (patch)
treed3181509fed0ff04aed57c87b6680e071e5e166f /storage/innobase
parente0617fcf58eabaafac13afaeb8466b08cd3c9cc9 (diff)
downloadmariadb-git-df29195345758a35a2968e85f03cc1e2a0870d76.tar.gz
Bug #56947 InnoDB leaks memory when failing to create a table
No mysql-test case. Tested by creating a table, removing a *.frm file and attempting to create the table again. Code coverage tested by instrumentation. Tested with Valgrind.
Diffstat (limited to 'storage/innobase')
-rw-r--r--storage/innobase/row/row0mysql.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/storage/innobase/row/row0mysql.c b/storage/innobase/row/row0mysql.c
index c5a3a2da9e2..645260bce0f 100644
--- a/storage/innobase/row/row0mysql.c
+++ b/storage/innobase/row/row0mysql.c
@@ -1981,6 +1981,7 @@ row_create_table_for_mysql(
table already exists */
trx->error_state = DB_SUCCESS;
+ dict_mem_table_free(table);
}
que_graph_free((que_t*) que_node_get_parent(thr));