Commit d5cd5ea4 authored by bell@sanja.is.com.ua's avatar bell@sanja.is.com.ua

prevented crash on deleting non-constructed analyse object

parent d7316689
......@@ -288,11 +288,12 @@ protected:
public:
uint max_tree_elements, max_treemem;
analyse(select_result *res) :Procedure(res, PROC_NO_SORT), rows(0),
output_str_length(0) {}
analyse(select_result *res) :Procedure(res, PROC_NO_SORT), f_info(0),
rows(0), output_str_length(0) {}
~analyse()
{
if (f_info)
for (field_info **f=f_info; f != f_end; f++)
delete (*f);
}
......
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