From fefa093e5adfaf7b49952b5f14f1a0027c884c96 Mon Sep 17 00:00:00 2001 From: Phillip Whelan Date: Tue, 7 Nov 2023 00:32:04 -0300 Subject: [PATCH] tests: runtime: chunk_trace: add wait in test to avoid use after free in lib callback. (#8139) Signed-off-by: Phillip Whelan --- tests/runtime/core_chunk_trace.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/runtime/core_chunk_trace.c b/tests/runtime/core_chunk_trace.c index 6fb00a9b407..2530da2f4a3 100644 --- a/tests/runtime/core_chunk_trace.c +++ b/tests/runtime/core_chunk_trace.c @@ -107,6 +107,7 @@ void do_test_records_trace(void (*records_cb)(struct callback_records *)) records_cb(records); flb_stop(ctx); + sleep(5); for (i = 0; i < records->num_records; i++) { flb_lib_free(records->records[i].data);