in_tail: scan_glob: fix leak when using musl logic workaround (#2097)
in_tail: scan_glob: fix leak when using musl logic workaround (#2097)

* Fixing memleak in do_glob.

Signed-off-by: Svetlana Duka <20ee0189ef357e15abe5cc3c8309e16559d1f62d@yandex-team.ru>

nokute78/fluent-bit,nokute78/fluent-bit,nokute78/fluent-bit,nokute78/fluent-bit,nokute78/fluent-bit,nokute78/fluent-bit,fluent/fluent-bit,fluent/fluent-bit,nokute78/fluent-bit,nokute78/fluent-bit,nokute78/fluent-bit,fluent/fluent-bit,fluent/fluent-bit,fluent/fluent-bit,nokute78/fluent-bit,fluent/fluent-bit,fluent/fluent-bit,nokute78/fluent-bit,fluent/fluent-bit,fluent/fluent-bit,nokute78/fluent-bit,fluent/fluent-bit,fluent/fluent-bit,fluent/fluent-bit