Skip to content

Commit bf2aa48

Browse files
authored
Merge pull request #39 from shinji-s/fix_free_concept_value
Fix multiple free in destroy@action_class_concept.c
2 parents ac878ef + af4fcc5 commit bf2aa48

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/action_class_concept.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,9 @@ static void destroy(grib_context* context, grib_action* act)
208208
grib_action_concept* self = (grib_action_concept*)act;
209209

210210
grib_concept_value* v = self->concept;
211-
if (v)
212-
grib_trie_delete(v->index);
211+
if (v) {
212+
grib_trie_delete_container(v->index);
213+
}
213214
while (v) {
214215
grib_concept_value* n = v->next;
215216
grib_concept_value_delete(context, v);

0 commit comments

Comments
 (0)