summaryrefslogtreecommitdiff
path: root/sql/sql_show.cc
diff options
context:
space:
mode:
authorTor Didriksen <tor.didriksen@oracle.com>2012-09-05 17:43:58 +0200
committerTor Didriksen <tor.didriksen@oracle.com>2012-09-05 17:43:58 +0200
commit775b1aebc2f47c53ec05de92983464b51aa0bd27 (patch)
tree70b5d580206d5f4042b163d43faec32180e23ca5 /sql/sql_show.cc
parentdde12745988d11f61bb94ed3e65afb2dd98fd644 (diff)
parentfe36ad97785150b76ada2e8a268ff3792a393be4 (diff)
downloadmariadb-git-775b1aebc2f47c53ec05de92983464b51aa0bd27.tar.gz
merge 5.1 => 5.5
Diffstat (limited to 'sql/sql_show.cc')
-rw-r--r--sql/sql_show.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc
index e9873d2325f..6c940661763 100644
--- a/sql/sql_show.cc
+++ b/sql/sql_show.cc
@@ -3155,8 +3155,9 @@ end:
/* Restore original LEX value, statement's arena and THD arena values. */
lex_end(thd->lex);
- if (i_s_arena.free_list)
- i_s_arena.free_items();
+ // Free items, before restoring backup_arena below.
+ DBUG_ASSERT(i_s_arena.free_list == NULL);
+ thd->free_items();
/*
For safety reset list of open temporary tables before closing