Fix multiple free. (Pointers to concept_value in the trie are borrowed pointers, which should not be free'd.)

This commit is contained in:
Shinji Suzuki 2020-08-10 18:40:59 +09:00
parent feb0ef47ec
commit ee7ad0bc92
1 changed files with 1 additions and 1 deletions

View File

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