From 931134193305e9269bd4c0df6f5a54718cb6832c Mon Sep 17 00:00:00 2001 From: "sergefp@mysql.com" <> Date: Fri, 13 Aug 2004 05:12:56 +0400 Subject: [PATCH] Fixed another bug#4984-type problem. This probably isn't the last fix for this bug. --- sql/opt_range.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sql/opt_range.cc b/sql/opt_range.cc index df79824ed1e..d2190c35bc6 100644 --- a/sql/opt_range.cc +++ b/sql/opt_range.cc @@ -1140,6 +1140,8 @@ QUICK_ROR_UNION_SELECT::~QUICK_ROR_UNION_SELECT() DBUG_ENTER("QUICK_ROR_UNION_SELECT::~QUICK_ROR_UNION_SELECT"); delete_queue(&queue); quick_selects.delete_elements(); + if (head->file->inited != handler::NONE) + head->file->ha_rnd_end(); free_root(&alloc,MYF(0)); DBUG_VOID_RETURN; }