play nice with valgrind

Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>