summaryrefslogtreecommitdiff
path: root/sql/item_cmpfunc.h
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.com>2018-03-22 16:23:37 +0400
committerAlexander Barkov <bar@mariadb.com>2018-03-22 16:23:37 +0400
commit0cba2c1ccb28bd9ef65926f3c91d5f6cc9f08cf9 (patch)
treec12858a9910c92a40d33dfa53fb6dfbeeeeb775c /sql/item_cmpfunc.h
parentb6d68c6aa3df0b8490dc92f2b22f9e92b67d6ef1 (diff)
downloadmariadb-git-0cba2c1ccb28bd9ef65926f3c91d5f6cc9f08cf9.tar.gz
MDEV-15633 Memory leak after MDEV-15005
Diffstat (limited to 'sql/item_cmpfunc.h')
-rw-r--r--sql/item_cmpfunc.h5
1 files changed, 5 insertions, 0 deletions
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,