mirror of
https://github.com/emqx/neuron.git
synced 2026-10-18 13:41:22 +08:00
fixbug:heap use after free
This commit is contained in:
@@ -372,8 +372,10 @@ void neu_group_change_test(neu_group_t *group, int64_t timestamp, void *arg,
|
||||
neu_group_change_fn fn)
|
||||
{
|
||||
if (group->timestamp != timestamp) {
|
||||
pthread_mutex_lock(&group->mtx);
|
||||
UT_array *tags = to_array(group->tags);
|
||||
fn(arg, group->timestamp, tags, group->interval);
|
||||
pthread_mutex_unlock(&group->mtx);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user