diff options
author | Tor Didriksen <tor.didriksen@oracle.com> | 2012-09-05 17:43:58 +0200 |
---|---|---|
committer | Tor Didriksen <tor.didriksen@oracle.com> | 2012-09-05 17:43:58 +0200 |
commit | 775b1aebc2f47c53ec05de92983464b51aa0bd27 (patch) | |
tree | 70b5d580206d5f4042b163d43faec32180e23ca5 /sql/sql_show.cc | |
parent | dde12745988d11f61bb94ed3e65afb2dd98fd644 (diff) | |
parent | fe36ad97785150b76ada2e8a268ff3792a393be4 (diff) | |
download | mariadb-git-775b1aebc2f47c53ec05de92983464b51aa0bd27.tar.gz |
merge 5.1 => 5.5
Diffstat (limited to 'sql/sql_show.cc')
-rw-r--r-- | sql/sql_show.cc | 5 |
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 |