1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

prevented crash on deleting non-constructed analyse object

This commit is contained in:
bell@sanja.is.com.ua
2003-02-18 10:18:51 +02:00
parent d7316689fd
commit d5cd5ea4e7

View File

@@ -288,11 +288,12 @@ protected:
public: public:
uint max_tree_elements, max_treemem; uint max_tree_elements, max_treemem;
analyse(select_result *res) :Procedure(res, PROC_NO_SORT), rows(0), analyse(select_result *res) :Procedure(res, PROC_NO_SORT), f_info(0),
output_str_length(0) {} rows(0), output_str_length(0) {}
~analyse() ~analyse()
{ {
if (f_info)
for (field_info **f=f_info; f != f_end; f++) for (field_info **f=f_info; f != f_end; f++)
delete (*f); delete (*f);
} }