Skip to content

Commit 109688b

Browse files
authored
Merge pull request #2697 from ZhouBox/v2.11
[v2.11]fixbug:heap use after free
2 parents 268e8d4 + f0c791e commit 109688b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/base/group.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,10 @@ void neu_group_change_test(neu_group_t *group, int64_t timestamp, void *arg,
372372
neu_group_change_fn fn)
373373
{
374374
if (group->timestamp != timestamp) {
375+
pthread_mutex_lock(&group->mtx);
375376
UT_array *tags = to_array(group->tags);
376377
fn(arg, group->timestamp, tags, group->interval);
378+
pthread_mutex_unlock(&group->mtx);
377379
}
378380
}
379381

0 commit comments

Comments
 (0)