mirror of
https://github.com/emqx/neuron.git
synced 2026-10-24 02:39:13 +08:00
Merge pull request #1667 from gc87/neu_type_ptr-leak-fix
fix(driver): neu_type_ptr leak
This commit is contained in:
@@ -1433,6 +1433,12 @@ static int report_callback(void *usr_data)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
utarray_foreach(data->tags, neu_resp_tag_value_meta_t *, tag_value)
|
||||
{
|
||||
if (tag_value->value.type == NEU_TYPE_PTR) {
|
||||
free(tag_value->value.value.ptr.ptr);
|
||||
}
|
||||
}
|
||||
utarray_free(data->tags);
|
||||
free(data->ctx);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user