Skip to content

Commit 3fd4ec0

Browse files
committed
processor: allow processors to operate in the same input context
Signed-off-by: Eduardo Silva <[email protected]>
1 parent f0d083b commit 3fd4ec0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/flb_processor.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -660,11 +660,13 @@ int flb_processor_run(struct flb_processor *proc,
660660
return -1;
661661
}
662662

663-
if (cur_buf != data) {
663+
if (cur_buf != data && cur_buf != tmp_buf) {
664664
cmt_destroy(cur_buf);
665665
}
666666

667-
cur_buf = (void *)tmp_buf;
667+
if (tmp_buf != NULL) {
668+
cur_buf = tmp_buf;
669+
}
668670
}
669671
}
670672
else if (type == FLB_PROCESSOR_TRACES) {

0 commit comments

Comments
 (0)