Skip to content

Commit

Permalink
in_tail: avoid double free for multiline msgpack buffer
Browse files Browse the repository at this point in the history
Signed-off-by: Rayhan Hossain <[email protected]>
  • Loading branch information
hossain-rayhan authored and PettitWesley committed Oct 27, 2021
1 parent 4725fb2 commit 9659e61
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/in_tail/tail_multiline.c
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,7 @@ int flb_tail_mult_flush(msgpack_sbuffer *mp_sbuf, msgpack_packer *mp_pck,
file->mult_keys = 0;
file->mult_flush_timeout = 0;
msgpack_sbuffer_destroy(&file->mult_sbuf);
file->mult_sbuf.data = NULL;
flb_time_zero(&file->mult_time);

return 0;
Expand Down

0 comments on commit 9659e61

Please sign in to comment.