Skip to content

Commit

Permalink
tests: internal: fix use-after-free for input_chunks test input_chunk…
Browse files Browse the repository at this point in the history
…_dropping_chunks. (#9472)

Signed-off-by: Phillip Whelan <[email protected]>
  • Loading branch information
pwhelan authored Oct 10, 2024
1 parent d94857f commit 8088400
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions tests/internal/input_chunk.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,19 +304,6 @@ void flb_test_input_chunk_dropping_chunks()
TEST_CHECK(ret == 0);
}

/* FORCE clean up test tasks*/
mk_list_foreach_safe(head, tmp, &i_ins->tasks) {
task = mk_list_entry(head, struct flb_task, _head);
flb_info("[task] cleanup test task");
flb_task_destroy(task, FLB_TRUE);
}

/* clean up test chunks */
mk_list_foreach_safe(head, tmp, &i_ins->chunks) {
ic = mk_list_entry(head, struct flb_input_chunk, _head);
flb_input_chunk_destroy(ic, FLB_TRUE);
}

flb_time_msleep(2100);
flb_stop(ctx);
flb_destroy(ctx);
Expand Down

0 comments on commit 8088400

Please sign in to comment.