Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
in_syslog: Fix double free when no parser is set
When running syslog example: `bin/fluent-bit -i syslog -o stdout -f 1` if no parser is set we get a double-free: ``` [2024/06/18 15:36:32] [ info] [fluent bit] version=3.1.0, commit=2bef95819e, pid=144050 [2024/06/18 15:36:32] [ info] [storage] ver=1.5.2, type=memory, sync=normal, checksum=off, m ax_chunks_up=128 [2024/06/18 15:36:32] [ info] [cmetrics] version=0.9.1 [2024/06/18 15:36:32] [ info] [ctraces ] version=0.5.1 free(): double free detected in tcache 2 [2024/06/18 15:36:32] [ info] [input:syslog:syslog.0] initializing zsh: IOT instruction bin/fluent-bit -i syslog -o stdout -f 1 ``` Remove the redundent flb_log_event_encoder_destroy, since that is already done in syslog_conf_destroy. Signed-off-by: Petter Mabacker <[email protected]>
- Loading branch information