cppcheck: NULL the pointer to the freed memory
cppcheck: remove unused variable
cppcheck: initialize m_readbuf as its done in mythsystemunix.cpp
fix typo
cppcheck: fix sign mismatch in printf