fixed some potential memory and filedescriptor leaks

also added cppcheck test
fixed memory leak in tests
travis: run fulltest
print valgrind output

so we can see it for travis tests too
source should be freed
travis: skip valgrind test with embedded perl