Commit 402df62b authored by konstantin@mysql.com's avatar konstantin@mysql.com

Fix a valgrind warning.

parent d8fef651
......@@ -2447,6 +2447,7 @@ Prepared_statement::~Prepared_statement()
if (cursor)
cursor->Cursor::~Cursor();
free_items();
free_root(cursor->mem_root, MYF(0));
delete lex->result;
}
......
......@@ -1920,7 +1920,6 @@ Cursor::~Cursor()
{
if (is_open())
close(FALSE);
free_root(mem_root, MYF(0));
}
/*********************************************************************/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment