Skip to content

Commit 681d42f

Browse files
pwhelanedsiper
authored andcommitted
tests/filter_modify: 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 f9c5924 commit 681d42f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/runtime/filter_modify.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1620,7 +1620,13 @@ static void flb_test_issue_7368()
16201620
ret = flb_start(ctx->flb);
16211621
TEST_CHECK(ret != 0);
16221622

1623-
filter_test_destroy(ctx);
1623+
if (ret == 0) {
1624+
filter_test_destroy(ctx);
1625+
}
1626+
else {
1627+
flb_destroy(ctx->flb);
1628+
flb_free(ctx);
1629+
}
16241630
}
16251631

16261632
TEST_LIST = {

0 commit comments

Comments
 (0)