fix: memory leak in read_events
Merge pull request #1 from seletskiy/fix_memory_leak

fix: memory leak in read_events