channels: redirection valgrind fixes