summaryrefslogtreecommitdiff
path: root/sql/item_row.h
diff options
context:
space:
mode:
Diffstat (limited to 'sql/item_row.h')
-rw-r--r--sql/item_row.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sql/item_row.h b/sql/item_row.h
index a09bd1a2c31..1b792f981fd 100644
--- a/sql/item_row.h
+++ b/sql/item_row.h
@@ -34,10 +34,14 @@ public:
with_null(0)
{}
- ~Item_row()
+ void cleanup()
{
if (array_holder && items)
+ {
sql_element_free(items);
+ items= 0;
+ array_holder= 0;
+ }
}
enum Type type() const { return ROW_ITEM; };