Skip to content

Commit

Permalink
chunk_trace: add wait in test to avoid use after free in lib callback.
Browse files Browse the repository at this point in the history
Signed-off-by: Phillip Whelan <[email protected]>
  • Loading branch information
pwhelan committed Nov 7, 2023
1 parent a182e1f commit 94e8f42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/runtime/core_chunk_trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 94e8f42

Please sign in to comment.