From dd9d1d62074a14c180e6c7a4fc5c79780cec67ea Mon Sep 17 00:00:00 2001 From: Richard Treu Date: Thu, 26 Sep 2024 10:51:05 +0200 Subject: [PATCH] filter_multiline: Reset group metadata buffer on flush This commit resets the size of the metadata buffer on a flush. It fixes continuous growth of this buffer over time. Signed-off-by: Richard Treu --- src/multiline/flb_ml.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/multiline/flb_ml.c b/src/multiline/flb_ml.c index d08eeccb112..66814835e18 100644 --- a/src/multiline/flb_ml.c +++ b/src/multiline/flb_ml.c @@ -1443,6 +1443,7 @@ int flb_ml_flush_stream_group(struct flb_ml_parser *ml_parser, } msgpack_unpacked_destroy(&result); group->mp_sbuf.size = 0; + group->mp_md_sbuf.size = 0; } else if (len > 0) { /* Pack raw content as Fluent Bit record */