[metrics] Fix double-free on application exit (#1717)
This commit is contained in:
parent
9b10d70c77
commit
e79e35dd74
|
@ -427,7 +427,7 @@ void ogs_metrics_inst_free(ogs_metrics_inst_t *inst)
|
||||||
{
|
{
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
|
||||||
ogs_list_remove(&inst->spec->inst_list, inst);
|
ogs_list_remove(&inst->spec->inst_list, &inst->entry);
|
||||||
|
|
||||||
for (i = 0; i < inst->num_labels; i++)
|
for (i = 0; i < inst->num_labels; i++)
|
||||||
ogs_free(inst->label_values[i]);
|
ogs_free(inst->label_values[i]);
|
||||||
|
|
Loading…
Reference in New Issue