From 0cba2c1ccb28bd9ef65926f3c91d5f6cc9f08cf9 Mon Sep 17 00:00:00 2001 From: Alexander Barkov Date: Thu, 22 Mar 2018 16:23:37 +0400 Subject: [PATCH] MDEV-15633 Memory leak after MDEV-15005 --- sql/item_cmpfunc.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sql/item_cmpfunc.h b/sql/item_cmpfunc.h index 41d5ce25fd4..f35859fd3c1 100644 --- a/sql/item_cmpfunc.h +++ b/sql/item_cmpfunc.h @@ -2265,6 +2265,11 @@ public: void sort(Item_field_cmpfunc compare, void *arg); void fix_length_and_dec(); bool fix_fields(THD *thd, Item **ref); + void cleanup() + { + delete eval_item; + eval_item= NULL; + } void update_used_tables(); COND *build_equal_items(THD *thd, COND_EQUAL *inherited, bool link_item_fields,