Commit fa23f3c4 authored by Brice Videau's avatar Brice Videau

Order inverse was not freed.

parent 9a62143d
......@@ -13,6 +13,7 @@ static int tleaf_it_alloc(excit_t it)
data_it->depth = 0;
data_it->arities = NULL;
data_it->order = NULL;
data_it->order_inverse = NULL;
data_it->buf = NULL;
data_it->levels = NULL;
return EXCIT_SUCCESS;
......@@ -25,11 +26,9 @@ static void tleaf_it_free(excit_t it)
struct tleaf_it_s *data_it = it->data;
if (data_it->arities != NULL)
free(data_it->arities);
if (data_it->order != NULL)
free(data_it->order);
if (data_it->buf != NULL)
free(data_it->order_inverse);
free(data_it->buf);
excit_free(data_it->levels);
}
......
......@@ -8,8 +8,8 @@ struct tleaf_it_s {
ssize_t *arities;
ssize_t *order;
ssize_t *order_inverse;
excit_t levels;
ssize_t *buf;
excit_t levels;
};
extern struct excit_func_table_s excit_tleaf_func_table;
......
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