Commit 406ea351 authored by pem@mysql.comhem.se's avatar pem@mysql.comhem.se

Fixed memory leak in Item_func_sp::cleanup().

parent 281c0a81
...@@ -1301,6 +1301,8 @@ class Item_func_sp :public Item_func ...@@ -1301,6 +1301,8 @@ class Item_func_sp :public Item_func
void cleanup() void cleanup()
{ {
if (result_field)
delete result_field;
Item_func::cleanup(); Item_func::cleanup();
result_field= NULL; result_field= NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment