mirror of
https://github.com/open5gs/open5gs.git
synced 2025-11-03 13:33:26 +00:00
[metrics] Fix double-free on application exit (#1717)
This commit is contained in:
@@ -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]);
|
||||||
|
|||||||
Reference in New Issue
Block a user