fixed https://github.com/Wallacoloo/printipi/issues/8 (valgrind hang)