mirror of
https://github.com/MariaDB/server.git
synced 2025-12-03 05:41:09 +03:00
Fix a valgrind warning.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
/*********************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user