Skip to content

Commit 4e92df5

Browse files
pwhelanedsiper
authored andcommitted
tests/filter_record_modifier: do not stop if unable start to avoid calling pthread_join on an invalid tid.
Signed-off-by: Phillip Adair Stewart Whelan <[email protected]>
1 parent 681d42f commit 4e92df5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/runtime/filter_record_modifier.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,9 @@ void flb_exclusive_setting()
470470
/* It should be error since "allowlist_key" and "remove_key" are exclusive */
471471
TEST_CHECK(ret != 0);
472472

473-
flb_stop(ctx);
473+
if (ret == 0) {
474+
flb_stop(ctx);
475+
}
474476
flb_destroy(ctx);
475477
}
476478

0 commit comments

Comments
 (0)