remove useless check generating warning, fix memleak in chanlist in config