Skip to content

Commit 9107895

Browse files
pwhelanedsiper
authored andcommitted
in_tail: fix memory leak when using generic unicode conversion.
Signed-off-by: Phillip Adair Stewart Whelan <[email protected]>
1 parent ee87e47 commit 9107895

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

plugins/in_tail/tail_file.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -651,12 +651,11 @@ static int process_content(struct flb_tail_file *file, size_t *bytes)
651651
file->last_processed_bytes += processed_bytes;
652652
}
653653

654-
#ifdef FLB_HAVE_UNICODE_ENCODER
655654
if (decoded) {
656655
flb_free(decoded);
657656
decoded = NULL;
658657
}
659-
#endif
658+
660659
file->parsed = file->buf_len;
661660

662661
if (lines > 0) {

0 commit comments

Comments
 (0)