Hi,

I've wanted to make our unit tests valgrind clean for a long time, here's where I am at right now, the branch fixes a number of production related bugs as well.

Feedback, help appreciated.

https://github.com/balabit/syslog-ng/tree/f/unit-test-cleanups

I am at 57 successful and 18 failing unit tests so far.

--
Bazsi