Skip to content

Commit

Permalink
tests: runtime: chunk_trace: add wait in test to avoid use after free…
Browse files Browse the repository at this point in the history
… in lib callback. (#8139)

Signed-off-by: Phillip Whelan <[email protected]>
  • Loading branch information
pwhelan authored Nov 7, 2023
1 parent 880c715 commit fefa093
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 fefa093

Please sign in to comment.