From b32d2ac276357828b5f814df4e6eade4d37d7d1f Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 1 Jul 2005 17:51:04 +0400 Subject: Fix a valgrind warning. sql/sql_prepare.cc: A small fix for the previous patch: we should first free the prepared statement items, and then free the runtime memory root, as some memory used for cleanup is allocated in that mem root. sql/sql_select.cc: - ever free the cursor mem root in close() (it's too early). --- sql/sql_select.cc | 1 - 1 file changed, 1 deletion(-) (limited to 'sql/sql_select.cc') diff --git a/sql/sql_select.cc b/sql/sql_select.cc index c6a9bd54f9c..f5c1c784ece 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -1920,7 +1920,6 @@ Cursor::~Cursor() { if (is_open()) close(FALSE); - free_root(mem_root, MYF(0)); } /*********************************************************************/ -- cgit v1.2.1