diff --git a/src/action_class_concept.c b/src/action_class_concept.c index 6694410d41..19064b7f8c 100644 --- a/src/action_class_concept.c +++ b/src/action_class_concept.c @@ -208,8 +208,9 @@ static void destroy(grib_context* context, grib_action* act) grib_action_concept* self = (grib_action_concept*)act; grib_concept_value* v = self->concept; - if (v) - grib_trie_delete(v->index); + if (v) { + grib_trie_delete_container(v->index); + } while (v) { grib_concept_value* n = v->next; grib_concept_value_delete(context, v);