1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Fix a valgrind warning.

This commit is contained in:
konstantin@mysql.com
2005-07-01 17:51:04 +04:00
parent d8fef65119
commit 402df62bf7
2 changed files with 1 additions and 1 deletions

View File

@ -2447,6 +2447,7 @@ Prepared_statement::~Prepared_statement()
if (cursor) if (cursor)
cursor->Cursor::~Cursor(); cursor->Cursor::~Cursor();
free_items(); free_items();
free_root(cursor->mem_root, MYF(0));
delete lex->result; delete lex->result;
} }

View File

@ -1920,7 +1920,6 @@ Cursor::~Cursor()
{ {
if (is_open()) if (is_open())
close(FALSE); close(FALSE);
free_root(mem_root, MYF(0));
} }
/*********************************************************************/ /*********************************************************************/