Fix for uninit reference counter on channels.
Fix for memory leak when redis is disabled.