summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <pem@mysql.comhem.se>2005-04-26 18:18:41 +0200
committerunknown <pem@mysql.comhem.se>2005-04-26 18:18:41 +0200
commit31b3ecaf862cacbfe43731c07e8abf1180165b24 (patch)
tree732cb923fac6e1c93fe842f0d2c1635b3da45a8f
parentede526167987b1b35da39a37091a27e6c8f8c6d2 (diff)
downloadmariadb-git-31b3ecaf862cacbfe43731c07e8abf1180165b24.tar.gz
Fixed memory leak in Item_func_sp::cleanup().
-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;
}