summaryrefslogtreecommitdiff
path: root/sql/item_func.h
diff options
context:
space:
mode:
Diffstat (limited to 'sql/item_func.h')
-rw-r--r--sql/item_func.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/item_func.h b/sql/item_func.h
index ba5a6101e4c..1182379ba05 100644
--- a/sql/item_func.h
+++ b/sql/item_func.h
@@ -1301,6 +1301,8 @@ public:
void cleanup()
{
+ if (result_field)
+ delete result_field;
Item_func::cleanup();
result_field= NULL;
}