mirror of https://github.com/ecmwf/eccodes.git
Merge pull request #39 from shinji-s/fix_free_concept_value
Fix multiple free in destroy@action_class_concept.c
This commit is contained in:
commit
bf2aa48228
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue