mirror of https://github.com/ecmwf/eccodes.git
Fix multiple free. (Pointers to concept_value in the trie are borrowed pointers, which should not be free'd.)
This commit is contained in:
parent
feb0ef47ec
commit
ee7ad0bc92
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue