From 406ea35128833f2f26437a9602abb85b5602acfd Mon Sep 17 00:00:00 2001
From: "pem@mysql.comhem.se" <>
Date: Tue, 26 Apr 2005 18:18:41 +0200
Subject: [PATCH] Fixed memory leak in Item_func_sp::cleanup().

---
 sql/item_func.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sql/item_func.h b/sql/item_func.h
index ba5a6101e4..1182379ba0 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;
   }
-- 
2.30.9