[metrics] Fix double-free on application exit (#1717)

This commit is contained in:
Bostjan Meglic 2022-08-26 11:15:32 +02:00 committed by GitHub
parent 9b10d70c77
commit e79e35dd74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -427,7 +427,7 @@ void ogs_metrics_inst_free(ogs_metrics_inst_t *inst)
{
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++)
ogs_free(inst->label_values[i]);