Skip to content

Commit b75f3bc

Browse files
cosmo0920edsiper
authored andcommitted
multiline: ml: Reset length of msgpack unpacking buffer
Signed-off-by: Hiroshi Hatake <[email protected]>
1 parent 8a9bd88 commit b75f3bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/multiline/flb_ml.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1483,6 +1483,7 @@ int flb_ml_flush_stream_group(struct flb_ml_parser *ml_parser,
14831483
msgpack_sbuffer_destroy(&mp_sbuf);
14841484
flb_sds_len_set(group->buf, 0);
14851485
group->truncated = FLB_FALSE;
1486+
group->mp_md_sbuf.size = 0;
14861487

14871488
/* Update last flush time */
14881489
group->last_flush = time_ms_now();

0 commit comments

Comments
 (0)