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:
shahramn 2020-08-25 13:03:55 +01:00 committed by GitHub
commit bf2aa48228
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -208,8 +208,9 @@ static void destroy(grib_context* context, grib_action* act)
grib_action_concept* self = (grib_action_concept*)act; grib_action_concept* self = (grib_action_concept*)act;
grib_concept_value* v = self->concept; grib_concept_value* v = self->concept;
if (v) if (v) {
grib_trie_delete(v->index); grib_trie_delete_container(v->index);
}
while (v) { while (v) {
grib_concept_value* n = v->next; grib_concept_value* n = v->next;
grib_concept_value_delete(context, v); grib_concept_value_delete(context, v);