Skip to content

Commit

Permalink
Merge pull request #39 from shinji-s/fix_free_concept_value
Browse files Browse the repository at this point in the history
Fix multiple free in destroy@action_class_concept.c
  • Loading branch information
shahramn authored Aug 25, 2020
2 parents ac878ef + af4fcc5 commit bf2aa48
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/action_class_concept.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bf2aa48

Please sign in to comment.